In android generally for buttons having different
“background” are stored in a xml file inside the drawable folder, whereas the “style” for text on that button is stored in the strings.xml file? Why is that so?
Can the strings.xml also contain the button backgground details(It’s color, shape etc), Or is that purely the work of Selector.
In android generally for buttons having different background are stored in a xml file
Share
BTW…
stylesare not supposed to be stored in thestrings.xml. Instead, they should be instyles.xmlundervaluesfolder. The reason to do this is to have clear distinction between different type of objects. This will help when you are going to support multi-lingual (as onlystrings.xmlneed to be modified in that case).For reference:
Resources Group