Bug 45769 - @android:style/Theme.NoTitleBar causes X.F. crash
Summary: @android:style/Theme.NoTitleBar causes X.F. crash
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal major
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2016-10-20 23:13 UTC by Robert Henden
Modified: 2017-06-01 18:46 UTC (History)
4 users (show)

Tags: android style crash ac
Is this bug a regression?: ---
Last known good build:

Screenshot of issue. (89.57 KB, image/png)
2016-10-20 23:14 UTC, Robert Henden

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Robert Henden 2016-10-20 23:13:35 UTC
Create any X.F. Android app, set theme to @android:style/Theme.Material, app runs.

Set theme to @android:style/Theme.NoTitleBar (which is a stock Android theme), app crashes due to X.F.'s internal code trying to access an action bar that isn't there...
Comment 1 Robert Henden 2016-10-20 23:14:55 UTC
Created attachment 18153 [details]
Screenshot of issue.
Comment 2 adrianknight89 2016-10-21 14:49:58 UTC
I have not tested this, but a related PR was merged recently. https://github.com/xamarin/Xamarin.Forms/pull/366

Not sure if it addresses this issue.
Comment 3 Paul DiPietro [MSFT] 2017-03-09 20:31:10 UTC
This crashes for me even if I use @android:style/Theme.Material. Setting to confirmed for the time being for further investigation.
Comment 4 Jason Smith [MSFT] 2017-06-01 18:46:58 UTC
This is not supported in X.F. and will not be.