android - XMl layout file does not recognising string created in strings.xml -
i have created new string in strings.xml , saved it. when trying utilize in layout.xml error:
no resource found matches given name (at'text' value '@string/breadth')
the xml code trying utilize strin is:
<textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#2f4f4f" android:text="@string/breadth" android:textappearance="?android:attr/textappearancemedium" />
the string created is:
<string name="breadth ">breadth in cms</string>
please help
you have typo. instead of:
<string name="breadth ">breadth in cms</string>
use:
<string name="breadth">breadth in cms</string>
note removed space ().
android
No comments:
Post a Comment