[英]Adding symbols through strings.xml file
我從這樣的strings.xml
文件顯示Activity's Title
setTitle(R.string.add_contact_title);
我在strings.xml
有以下string
<string name="add_contact_title">Anadir Contacto</string>
但我想,顯示一個類似標題Añadir Contacto
而不是Anadir Contacto
。
有什么方法可以在strings.xml文件中執行此操作,而不是從其他來源復制並粘貼字符?
您也可以使用\\ u轉義序列使用unicode,如下所示:
<string name="add_contact_title">A\u00F1adir Contacto</string>
請參閱此處以獲取常見的unicode拉丁字符列表: http : //unicode-table.com/en/#latin-extended-b
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.