Value under the String.xml storage resources, the name of the button is stored in the string.xml.
The text of all controls is best not to be written directly in XML, but rather to write the string in a certain format in Res\values\strings.xml, and then use the string ID reference in the XML.
For example:
Edit in Strings.xml First
<string name= "Button_name" > Login </string>;
And in the Activity_main.xml.
android:text= "@string/button_name" to access the "login" string.
String in value holds some strings, resources, etc.
The ID of the R file generation resource
button and Smallbutton no difference, is the size of the problem, in the Smallbutton more than one attribute:
Style= "? Android:attr/buttonstylesmall
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Properties and Usage in button buttons for Android self-paced notes