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 the PhotoLibrary| Resources|values group, ensure that it is displayed in the code editor, and then enter the following code snippet:
<?xml version="1.0" encoding="UTF-8"?> <resources> <!-- A custom theme that is ...