Implementing Material Design in the PhotoLibrary app
In the previous sections, we looked at how to create the user interface for our app, update theStrings.xml
file, and create thestyles.xml
file. Lastly, we looked at creatingPhotoLibraryActivity
and making some changes to theMainActivity
class.
In this section, we will learn how to go about creating and implementing custom Material Design Themes, and how to implement Material Design in the PhotoLibrary application.
Creating custom themes for the PhotoLibrary application
Creating custom themes for your apps is extremely easy. Android themes are similar to using CSS style sheets in your web applications for user interface design. Themes allow you to separate styles from your UI components, which makes maintaining your applications look and feel a lot easier.
Let's take a look at how to create a simple style in our styles.xml
file for our PhotoLibrary app by following these simple steps:
- Open the
styles.xml
file, which is located as part of thePhotoLibrary...