<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>
我发现我的复选框仍然显示“@string/uBG”,而不是“Example”一词
最佳答案
尝试清理并重建项目。如果使用 Eclipse,请转到“项目”>“清理...”并确保选中“自动构建”。
关于java - Android XML 混合和小困难,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18048519/