android - String.xml with name of button -
need @string resources in android.
strings.xml
<string name ="jugar"></string>
aplication.xml
<button android:id="@+id/jugar" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/jugar" />
result: button jugar -> text empty, no visible in aplication.
thanks!
you need put text value in string such:
<string name ="jugar">jugar</string>
the name
attribute reference, not text value.
Comments
Post a Comment