O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required