Styles and Themes - User Interface| Material Design System | Android App Development in Kotlin
A style is a collection of attributes that specify the appearance for a view or window.
A style is can specify attributes such as font color, font size, background color, etc.
<style name = "CustomFontStyle">
<item name = "android:layout_width">fill_parent</item>
<item name = "android:layout_height">wrap_parent</item>
<item name = "android:capitalize">characters</item>
<item name = "android:typeface">monospace</item>
<item name = "android:textSize">12pt</item>
<item name = "android:textColor">#00ee00</item>
</style>
A theme is a collection of attributes that's attributes that's applied to an entire app, activity, or view hierarchy(not just an individual view).
Themes can alse apply styles to non-view elements, such as the status bar and window background.
반응형