java - Android XML 混合和小困难

标签 java android xml eclipse development-environment

    <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/

相关文章:

java - 在 Eclipse 调试器中运行时 List.getSize() 返回不同的结果

android - 解析Json并在ListView中打印

android - 显示 HttpsURLConnection 发送的实际原始数据 + HTTPS header

java - Gradle 构建在 Android Studio 1.5.1 中失败

java - 如何监视属于无法从外部访问的对象的方法?

java - NetworkOnMainThreadException 即使在实现 AsyncTask 之后

java - 使用 XSLFO 显示 SVG

java - Android usb主机与定制板的串行通信

c# - 针对 xsd 和 CRLF 字符的 Xml 验证

python - 通过 Web 连接到 API 与 Python