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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -