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

Applying the custom theme to the PhotoLibrary application

We have just created a custom theme and created a number of styles for our PhotoLibrary application; our next step is to apply the custom theme to our PhotoLibrary layout file, as well as update our PhotoLibraryActivity class to use our custom theme, which will then apply the theming for our application:

  1. Open the PhotoLibraryUI.axml file, which is located as part of the PhotoLibrary|Resources|layout group, and ensure that it is displayed in the code editor. Enter the following code snippet:
     <?xml version="1.0" encoding="utf-8"?>     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"         android:orientation="vertical"         android:layout_width="match_parent" android:layout_height="match_parent"> ...

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