January 2017
Beginner to intermediate
624 pages
22h 42m
English
With the base theme squared away, it is time to customize the attributes of BeatBox’s AppTheme.
In the styles.xml file, you will see three attributes. Update them to match Listing 22.9.
Listing 22.9 Setting theme attributes (res/values/styles.xml)
<style name="AppTheme" parent="Theme.AppCompat">
<item name="colorPrimary">@color/colorPrimary red</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark dark_red</item>
<item name="colorAccent">@color/colorAccent gray</item>
</style>
These theme attributes look similar to the style attributes that you set up earlier, but they specify different properties. Style attributes specify properties for an individual widget, such as the textStyle that you used ...
Read now
Unlock full access