Issue
android:theme="@style/AppTheme"
I think "android" represents a function or a class?
What is "theme" called technically?
"@style" is the string and it's value being "AppTheme", I presume?
Solution
Well, this "code" is a XML attribute, and defines the visual style of your EG Activity.
androidbeing a XML name space alias, usually used by Android XML schemas.themeis the name of the attribute, that is defined in the name space declared previously asandroid.@styleis a reference to a group of "resources", in this case to predefined styles.AppThemeis a predefined Style for the entire app.
See also @cricket_007 's link: https://developer.android.com/guide/topics/resources/accessing-resources.html#ResourcesFromXml
Answered By - Usagi Miyamoto
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.