Thursday, November 23, 2017

Grid with RowSpacing(Xamarin Forms) and navigation

Leave a Comment

Now I'm working on updating the UI of my app(XF for Android). I found this UI solution for appbar(from source code Evolve 2016):

enter image description here

It looks beautiful and is implemented simply:

<ContentPage.Content> <Grid RowSpacing="0" >     <Grid.RowDefinitions>         <RowDefinition Height="Auto" />         <RowDefinition Height="*" />     </Grid.RowDefinitions>     <StackLayout BackgroundColor={StaticResource Primary}, Grid.Row=0/>        <SearchBar/>     </StackLayout>     <StackLayout Grid.Row=1>        //other content    </StackLayout>  ..... 

For existing navigation(Master-Detail) it works fine. But I click by item (on this page) - than open new page(no Master Detail). Work like this:

 await Navigation.PushAsync(new SessionDetailPage(), true); 

I click back on toolbar - return to Session page than I get a white line display for a short time

enter image description here

it does not last long, a split second. then the white line disappears. But it's unpleasant to use. Any ideas? How can I improve this?

1 Answers

Answers 1

Might be RowDefinition Height="Auto" calculating and resizing itself, try use absolute value to check if this is the cause.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment