android textview中文亂碼變框框 問題


Eclipse對中文字還是不友善,仍會變框框.
如果直接寫:

<TextView

android:id="@+id/widget29"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="你做不了決定嗎"
android:textSize="32sp" />

   

改成不要在text裡面直接賦值,把text的值放到string裡面,那麼在layout裡
面配置則是: android:text="@string/text1",然後在你的res/values/strings.xml裡面添加一條string: <string name="text"> 中文字 </string>
但在eclipse中還是框框,
但執行後就正常了......
目前只能說先忽略框框....

 

留言

這個網誌中的熱門文章

最爛的銀行服務-玉山銀行

Mark App Design Apps - Terms and Privacy Policy (服務條款,隱私權政策)

SMR疊瓦式hdd致命缺陷被解決????!!!

ios app 上架時app icon要注意事項

更改google drive預設存放目錄位置Change Google Drive Default Folder Location in Windows

google play 正式發布前測試報告...非常好用.

舊有app在Android 12 閃退問題& app Splash screens

app bundle and bundletool. 關於aab安裝問題

關於google play console app應用程式簽署

Google Play badge徽章產生器