Forum Xamarin.Forms

Back navigation page transition on Android when using FormsAppCompatActivity

DaveUDaveU GBMember ✭✭

I've been migrating an Android project from FormsApplicationActivity to FormsAppCompatActivity and (along with various other things that have needed fixing as a result) I am now seeing an odd effect when navigating back on Navigation pages within a Master Detail page - it seems to flash with a white border around the page that is being popped, rather than the smoother fade when using FormsApplicationActivity. Has anyone else noticed something similar and know of a style (or ideally not...a custom renderer) I can add to remove this. The pages are ContentPages within a single NavigationPage that's set as the DetailPage.

Thanks in advance. I'm tempted to just stick with FormsApplicationActivity to be honest...!

Answers

  • DaveUDaveU GBMember ✭✭

    Ignore this, sorry. As mention here, it was simply the background of the page showing through during the transition, so setting this to transparent on the main theme in styles.xml did the trick:

    <item name="android:colorBackground">@android:color/transparent</item>

  • CarLoOSXCarLoOSX USMember ✭✭

    I'm having this problem too with the last version of forms...

    THIS DO NOT HAVE ANY PROBLEM
    App.Current.MainPage = new LoginPage();

    THIS SHOWS A BLANK PAGE BEFORE APPEARING THE PAGE
    App.Current.MainPage = new NavigationPage(new LoginPage());

    Seems to be a problem with Navigationpage only in android.

Sign In or Register to comment.