界面的xml代码如下:
[code="java"]
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:textSize="18sp" />
<EditText android:id="@+id/title" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:textSize="18sp"
android:maxLength="50" />
<TextView android:text="内容"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:textSize="18sp" />
<ScrollView android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/content" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:textSize="18sp" />
</ScrollView>
[/code]
如图,由于我们使用了中文,可视界面里变成了方框:
[img]/upload/attachment/137355/e54e1612-33a9-3c7f-866d-c0cb0d316c72.jpg[/img]
虽然最终打包放到模拟器上的界面显示的不是乱码,但是这个也比较的影响开发调试吧?
不知道大家有没有什么好的解决方法呢?
[b]问题补充:[/b]
1,其实原本就是放在string.xml里面的,这里直接在text里面赋值只是为了描述的方便,懒得多贴一段代码。
2,模拟器上显示正常,这里说的是在eclipse下的xml编辑的view界面会显示成为乱码。
[b]问题补充:[/b]
唉,这个就没办法解决了吗? :?
或者我要考虑做一下国际化,开发的时候用因为,测试的时候用中文。