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 the Styles XML file for our Photo Library app

In this section, we will look at how to create a styles.xml file that will be used to apply styling to our user interface. The benefit of using a styles.xml file is that you can apply styling to our application, as well as each of the UI elements, such as by setting font sizes and colors, and customizing the appearance of control elements.

Let's start by creating the Styles file for our PhotoLibrary app by performing the following steps:

  1. Expand the Resources folder in the PhotoLibrary solution and right-click on the values folder to display the popup, as shown in the following screenshot.
  1. Next, choose the New File... option, which is located in the Add menu:
Creating a new Styles.xml ...

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