在下面的代码行中,"android","theme","@style"and "AppTheme" 代表什么
In the following line of code what does "android","theme","@style"and "AppTheme" represent
android:theme="@style/AppTheme"
我认为"android"代表一个函数还是一个class?
"theme" 技术上叫什么?
“@style”是字符串,它的值是 "AppTheme",我猜?
好吧,这个 "code" 是一个 XML 属性,它定义了您的 EG Activity
的视觉风格。
android
是一个 XML 名称 space 别名,通常由 Android XML 模式使用。
theme
是属性的名称,在先前声明为 android
. 的名称 space 中定义
@style
是对一组 "resources" 的引用,在本例中是对预定义样式的引用。
AppTheme
是整个应用程序的预定义样式。
另请参阅@cricket_007 的 link:https://developer.android.com/guide/topics/resources/accessing-resources.html#ResourcesFromXml
android:theme="@style/AppTheme"
我认为"android"代表一个函数还是一个class?
"theme" 技术上叫什么?
“@style”是字符串,它的值是 "AppTheme",我猜?
好吧,这个 "code" 是一个 XML 属性,它定义了您的 EG Activity
的视觉风格。
android
是一个 XML 名称 space 别名,通常由 Android XML 模式使用。theme
是属性的名称,在先前声明为android
. 的名称 space 中定义
@style
是对一组 "resources" 的引用,在本例中是对预定义样式的引用。AppTheme
是整个应用程序的预定义样式。
另请参阅@cricket_007 的 link:https://developer.android.com/guide/topics/resources/accessing-resources.html#ResourcesFromXml