我正在尝试显示资源中的字符串
我已经在 values 文件夹中显示了字符串的资源
activity_main.xml
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:paddingTop="10dp" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="140dp"
android:background="@drawable/frame_background_for_rounded_corners_white_bkg" >
<ImageView
android:id="@+id/image1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/image_view_background_white_background" />
<Button
android:id="@+id/button1"
android:layout_width="116dp"
android:layout_height="wrap_content"
android:background="@drawable/button_round_cornered_white_background"
android:text="Button" />
<TextView
android:layout_width="wrap_content"
android:layout_height="141dp"
android:layout_alignParentBottom="true"
android:layout_below="@+id/button1"
android:gravity="center"
android:text="@string/BuffetOfferings-Breakfast-statement"
android:textColor="#000000"
android:textSize="24sp" />
</RelativeLayout>
</RelativeLayout>
在值文件夹中
样式.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Light" />
<color name="TextColorForTextAboveImage">#FFFFFF</color>
<string name="BuffetOfferings-Breakfast-statement">Tap the "Breakfast" to offer, then the days and time of its offerings to your customers</string>
</resources>
我的输出::
显然,您可以看到要显示的文本而不是文本....引用本身正在显示
如何解决这个问题!