<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”,而不是“示例” 我知道我犯了一个愚蠢的错误,但只需要知道什么。 感谢任何回答的人,请不要贬低,因为这对我来说是愚蠢或幼稚的......
答案 0 :(得分:1)
尝试清理和重建项目。如果使用Eclipse,请转到Project&gt;清理......并确保选中自动构建。