Issue
Please anyone suggest some answers.
Solution
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.
Answered By - Leo Zhu - MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.