【发布时间】:2013-08-04 23:10:06
【问题描述】:
<CheckBox
android:id="@+id/checkBox2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/checkBox1"
android:layout_below="@+id/checkBox1"
android:layout_marginTop="22dp"
android:text="@string/uBG" />
大家好!上面的代码存在于我的 activity_main.xml 文件夹中,因为我正在开发一个非常简单的应用程序来试验我有限的技能,尽管事实上我在 strings.xml 中添加了以下行:
<string name="uBG">Example</string>
我发现我的 CheckBox 仍然显示“@string/uBG”而不是“Example”这个词 我知道我犯了一个愚蠢的错误,但只需要知道什么。 感谢任何回答的人,请不要投反对票,因为这对我来说很愚蠢或天真......
【问题讨论】:
标签: java android xml eclipse development-environment