[英]remove top bar Android app
嘗試在stlye.xml中首先定義樣式
//NoActionBar
<style name="AppTheme.NoActionBar">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
比在mainfest文件中聲明類樣式如下
<activity
android:name="youractivityName"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
/>
如果您在App類中使用new NavigationPage (new YourPage())
,請確保將其更改為new YourPage()
。 否則,如果您是在觸發事件時進入該頁面,則不要像Navigation.PushAsync(new NavigationPage ( new YourPage())
這樣使用它,而應使用Navigation.PushAsync( new YourPage())
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.