How can I remove top bar that says Project 1.
Asked
Active
Viewed 1,370 times
0
-
change the style of your app in the Androidmanifest file. Look for a style without an action bar – user 007 Aug 27 '18 at 13:12
-
Have you tried [No action bar](https://stackoverflow.com/questions/8456835/how-to-disable-action-bar-permanently) ? – Madhan Varadhodiyil Aug 27 '18 at 13:13
2 Answers
5
Try this first define style in stlye.xml
//NoActionBar
<style name="AppTheme.NoActionBar">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
Than in mainfest file declare class style as below
<activity
android:name="youractivityName"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
/>

mehul chauhan
- 1,792
- 11
- 26
0
If you are using new NavigationPage (new YourPage())
in the App class make sure to change it to new YourPage()
. or if you are if you are getting to the page when an event is fired don't use it like this Navigation.PushAsync(new NavigationPage ( new YourPage())
. instead use Navigation.PushAsync( new YourPage())

Dyary
- 753
- 7
- 14
-
Or alternatively you can go to the XAML for the page in the first heading of your content page and set the NavigationPage.HasTitleBar to false. – Dyary Aug 27 '18 at 13:25