Xamarin remove app title
Write this in the OnCreate
method just after SetContentView
:
ActionBar.Hide();
As far as I remember, in your Activity Class you have to remove the Attribute label there so that it won't have a title. I currently don't have Xamarin with me right now but I'm pretty sure there is an attribute above the class name that sets the Title.
UPDATE from phadaphunk:
Remove android:theme="@android:style/Theme.NoTitleBar" from the manifest file will completely remove the title
UPDATE
NavigationPage.SetHasNavigationBar(this, false);
At the time I wrote the answer, the best answers that are given now are available to the framework. Correct me if I'm wrong but I don't remember those API being available at the time of this writing.
The option which to me seems the simplest is to edit the Activity
attribute and use a default style (rather than a custom one, as suggested by Mina Fawzy):
[Activity(Theme = "@android:style/Theme.DeviceDefault.NoActionBar", ...)]
If you want to remove the status bar too then use
[Activity(Theme = "@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen", ...)]