Please anyone suggest some answers.
Asked
Active
Viewed 1,163 times
-2

zhangxaochen
- 32,744
- 15
- 77
- 108

Prawesh kafle
- 3
- 2
-
Please provide your code and edit your answer according to https://stackoverflow.com/help/minimal-reproducible-example – Anirudh May 07 '21 at 07:01
-
Does this answer your question? [Change Navigation bar height on iOS Xamarin Forms?](https://stackoverflow.com/questions/61784782/change-navigation-bar-height-on-ios-xamarin-forms) – Sinatr May 07 '21 at 07:01
1 Answers
1
You could set NavigationPage.BarHeight
to change the navigationbar height for android platform.
create a AndroidNavigationPage :
public class AndroidNavigationPage: Xamarin.Forms.NavigationPage
{
public AndroidNavigationPage(Page page)
{
On<Android>().SetBarHeight(450); //set the navigation bar height
PushAsync(page);
}
}
then you could call it like:
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new AndroidNavigationPage(your page);
}
}
the more you could look at NavigationPage Bar Height on Android.

Leo Zhu
- 15,726
- 1
- 7
- 23