This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 38019 - Can't remove title bar in Material design
Summary: Can't remove title bar in Material design
Alias: None
Product: Forms
Classification: Xamarin
Component: Android (show other bugs)
Version: 2.0.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-01-26 04:45 UTC by adrianknight89
Modified: 2016-11-30 16:52 UTC (History)
12 users (show)

See Also:
Tags: ac
Is this bug a regression?: ---
Last known good build:

Material title bar repro (43.74 KB, application/zip)
2016-01-26 04:45 UTC, adrianknight89

Description adrianknight89 2016-01-26 04:45:00 UTC
Created attachment 14727 [details]
Material title bar repro

Tested on with an S6 using API Level 23

Used the following to try to go fullscreen:

In App.cs:

NavigationPage.SetHasNavigationBar(this, false);

In MainActivity.cs:


In style.xml:

  <style name="MyTheme" parent="MyTheme.Base">
  <style name="MyTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>

Title bar doesn't go away. The text on it is successfully hidden, but the frame stays intact.

Please see repro
Comment 1 Jason Smith 2016-01-29 22:40:32 UTC
are you using FormsAppCompatActivity?
Comment 2 adrianknight89 2016-01-30 08:51:39 UTC
Yes. Please see MainActivity.cs
Comment 3 adrianknight89 2016-02-14 04:36:14 UTC
I'm having a related issue. See here

Seems like there is no way to enter full screen mode at startup at the moment. :|
Comment 4 Werner Schnedl 2016-02-29 11:05:53 UTC
I have this issue too - occurs only if using Master Detail Page on Android. The Code I am using is:

 View decorView = Window.DecorView;
 var uiOptions = (int)decorView.SystemUiVisibility;
 var newUiOptions = (int)uiOptions;

 newUiOptions |= (int)SystemUiFlags.LowProfile;
 newUiOptions |= (int)SystemUiFlags.Fullscreen;
 newUiOptions |= (int)SystemUiFlags.HideNavigation;
 newUiOptions |= (int)SystemUiFlags.Immersive;
 decorView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;

The result is that the status bar is cleared but not hidden and a blue empty bar stays visible.
Comment 5 Werner Schnedl 2016-02-29 13:48:11 UTC
Amendment: The example above worked before I switched to Material Design.
Comment 6 Mark 2016-03-07 23:18:53 UTC
I also have this problem. The title bar occupies space even though it's not supposed to be there when hidden.
Comment 7 adrianknight89 2016-04-29 00:22:00 UTC
Any update on this? I can't update to AppCompat unless this is fixed.
Comment 8 adrianknight89 2016-05-12 23:47:29 UTC
In AppCompat, Forms.SetTitleBarVisibility (AndroidTitleBarVisibility.Never); does not work.
Comment 9 Avidan Chen 2016-09-06 12:42:33 UTC
Please fix it as soon as possible. This issue is preventing us from switching to FormsAppCompatActivity.
Comment 10 adrianknight89 2016-09-13 06:24:52 UTC
Please see:
Comment 11 Samantha Houts 2016-09-30 23:11:29 UTC
Should be fixed in 2.3.4-pre1. Thank you!
Comment 12 Parmendra Kumar 2016-11-30 16:52:03 UTC
I have checked this issue with Xamarin.Forms 2.3.4-pre1 and this issue has been fixed.

Hence closing this issue.

Note You need to log in before you can comment on or make changes to this bug.