title: remove top bar on Android with xamarin forms
body: <p>I tried several solutions including:</p>
  
  <pre><code>&lt;item name="android:actionBarSize"&gt;0dp&lt;/item&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>var activity = (Activity)Forms.Context;
  this.Window.AddFlags(WindowManagerFlags.Fullscreen);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>RequestWindowFeature(WindowFeatures.NoTitle);
  </code></pre>
  
  <p>or in activity string</p>
  
  <pre><code>Theme = "@style/MainTheme.FullScreen"
  </code></pre>
  
  <p>But I could not find any solution that works, or rather, removes me the lyrics, the battery time etc., but I remain the same the top bar, how can I remove it completely?</p>
  
  <p><a href="https://i.stack.imgur.com/onEXn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/onEXn.png" alt="enter image description here"></a></p>
  
  <p>on iOs i have added:</p>
  
  <pre><code>UIApplication.SharedApplication.SetStatusBarHidden(true, true);
  </code></pre>
  
  <p>and works...but android he is making me damn :)
  Solution ?</p>
  
  <p>I use xamarin forms pcl</p>
  
  <p>my styles.xaml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;resources&gt;
    &lt;style name="MainTheme" parent="MainTheme.Base"&gt;
    &lt;/style&gt;
    &lt;!-- Base theme applied no matter what API --&gt;
    &lt;style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!--If you are using revision 22.1 please use just windowNoTitle. Without android:--&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;!--We will be using the toolbar so no need to show ActionBar--&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette --&gt;
      &lt;!-- colorPrimary is used for the default action bar background --&gt;
      &lt;item name="colorPrimary"&gt;#2196F3&lt;/item&gt;
      &lt;!-- colorPrimaryDark is used for the status bar --&gt;
      &lt;!--&lt;item name="colorPrimaryDark"&gt;#0084CA&lt;/item&gt;--&gt;
      &lt;!-- colorAccent is used as the default value for colorControlActivated
           which is used to tint widgets --&gt;
      &lt;item name="colorAccent"&gt;#2196F3&lt;/item&gt;
      &lt;!-- You can also set colorControlNormal, colorControlActivated
           colorControlHighlight and colorSwitchThumbNormal. --&gt;
      &lt;item name="windowActionModeOverlay"&gt;true&lt;/item&gt;
      &lt;!-- default --&gt;
      &lt;item name="android:buttonStyle"&gt;@style/NoShadowButton&lt;/item&gt;
  
      &lt;item name="android:datePickerDialogTheme"&gt;@style/AppCompatDialogStyle&lt;/item&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
    &lt;/style&gt;
  
    &lt;style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"&gt;
      &lt;item name="colorAccent"&gt;#2196F3&lt;/item&gt;
    &lt;/style&gt;
    &lt;style name="NoShadowButton" parent="android:style/Widget.Button"&gt;
      &lt;item name="android:stateListAnimator"&gt;@null&lt;/item&gt;
    &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>