Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

NullReferenceException when trying to theme Android application

$
0
0

When I try to apply the following theme to my app, I get a null ref exception when trying to show the MainPage in the XamarinForms app.

<style name="Theme.Splash" parent="AppTheme">
    <item name="android:windowBackground">@drawable/splash</item>
    <item name="android:windowNoTitle">true</item>
  </style>
    <style name="AppTheme" parent="@android:Theme" />

However, if I change this to

<style name="Theme.Splash" parent="AppTheme">
    <item name="android:windowBackground">@drawable/splash</item>
    <item name="android:windowNoTitle">true</item>
  </style>
    <style name="AppTheme" parent="@android:style/Theme.Holo" />

It works perfectly. Could it have something to do with this bug?

https://bugzilla.xamarin.com/show_bug.cgi?id=31027


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>