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 styles for the Photo Library application UI controls

Now that you have created the custom theme in the styles.xml file, we can continue modifying this file and create custom styles for our UI components that we created in our PhotoLibraryUIlayout file.

Let's take a look at how to create the required styles for our UI controls 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 a variation on the light theme with  a different background ...

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