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

How to hide Android toolbar with Xamarin.forms

$
0
0

I am using Xamarin.forms and I am trying to hide the toolbar on Android. I have it working for all the pages, except the first page that loads. I can't seem to get it to go away on that page. Anyone know how to fix this issue?

My styles.xml code:

<?xml version="1.0" encoding="UTF-8" ?>
<resources>
  <style name="Theme.Splash" parent="android:Theme">
    <item name="android:windowBackground">@drawable/splash</item>
    <item name="android:windowNoTitle">true</item>
  </style>
  <style name="MyTheme" parent="MyTheme.Base">
  </style>
  <style name="MyTheme.Base" parent="Theme.AppCompat.NoActionBar">
    <item name="colorPrimary">@color/primary</item>
    <item name="colorPrimaryDark">@color/primaryDark</item>
    <item name="colorAccent">@color/accent</item>
    <item name="android:windowBackground">@color/window_background</item>
    <item name="android:windowActionBarOverlay">true</item>
    <item name="windowActionBarOverlay">true</item>
    <item name="android:actionBarSize">0dp</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowTitleSize">0dp</item>
    <item name="android:windowNoTitle">true</item>
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="actionBarSize">0dp</item>
  </style>
</resources>

Viewing all articles
Browse latest Browse all 91519

Trending Articles