Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive deep into the intricacies of Android themes and styles in this 37-minute Google I/O 2016 talk. Explore the fundamental concepts of UI styling in Android, including the relationship between themes and styles, the nature of attributes, and techniques for creating more manageable styles. Learn about attribute format types, namespaces, custom attributes, and the global namespace. Discover how styles can reference values from themes, and understand the concept of overlay themes. Examine text appearances, widget styles, theme colors, and drawables. Gain insights into view tinting, the night qualifier, and backwards compatibility. Uncover the differences between defStyleAttr and defStyleRes, and explore how view attributes work within themes. Master the art of Android UI styling to create more polished and efficient app designs.
Syllabus
Intro
How did selectableltemBackground change in Kitkat?
Themes and Styles
Attributes format types
Attributes namespaces
Custom attributes Global namespace
Styles Can reference values from the theme
Overlay themes
Text appearances
Widget styles
Theme colors
Drawables
View tinting: Switch
TextView
night qualifier
android:theme Backwards compatibility
Incorrect style parent
defStyleAttr vs defStyleRes
View attributes in themes
Taught by
Android Developers