-
Styles and themes are used to create a consistent user interface throughout an app, in a way that allows for reuse, easy maintenance, and compatibility on older versions of Android.
What you'll learn
- Styles
- Themes
- AppCompat
Overview
Syllabus
-
Using Styles in Layouts
Styles in Android are used to create reusable UI customizations for views in layouts. Defined in one place, styles make buttons, text fields, or other widgets look the same.
Chevron 7 steps-
Defining the Problem
3:40
-
Creating a Style
2:37
-
Creating a Style
3 objectives
-
Including One Layout in Another
0:57
-
Using Includes for Repeatable Layouts
3 questions
-
Styling More Views
4:38
-
Styling EditTexts and Buttons
3 objectives
Themes and Compatibility
Themes are collections of styles that can be applied to an app to create consistency across different layouts and versions of Android.
Chevron 8 steps-
Introducing Themes
1:28
-
Creating a Theme
2:24
-
Creating a Theme
2 objectives
-
AppCompat and Themes
4:29
-
Fixing Compatibility Issues
3:08
-
Using AppCompatActivity
6:37
-
Review: Styles and Themes
4 questions
-
Final Thoughts
0:28
-