Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Navigation Bar Showing and Hiding on Android - Change/remove animation?

$
0
0

Hi,

On my Xamarin forms app I've got a main page which has no navigation bar, but then you can drill down into sections which are pushed onto the navigationpage stack, these need a navigation bar with a back button.

To do this, my main page calls
NavigationPage.SetHasNavigationBar (this, false);
in its constructor.

This works ok but I don't like how it animates. If I press a button on my main page the next page appears, and then slides down as the navigation bar is added at the top. Then if I hit the back button the page disappears and the whole main screen slides upwards as the navigation bar is taken away. This is a jarring animation.
Here is an example:

image

Is there any way I can just make the navigation bar show and hide with each page, rather than as a separate step? The iOS app does this:

image


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>