android textview中文亂碼變框框 問題 張貼者: Android/ios/flutter app designer. 日期: 12月 13, 2011 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 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中還是框框, 但執行後就正常了...... 目前只能說先忽略框框.... 留言
留言