【问题标题】:Android XML Mixup and Minor DifficultiesAndroid XML 混淆和小困难
【发布时间】: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


    【解决方案1】:

    尝试清理并重建项目。如果使用 Eclipse,请转到 Project > Clean... 并确保选中 Build Automatically。

    【讨论】:

      猜你喜欢
      • 2010-11-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-23
      • 1970-01-01
      • 1970-01-01
      • 2012-03-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多