summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.Android
diff options
context:
space:
mode:
authorSamantha Houts <samhouts@users.noreply.github.com>2017-06-22 09:25:35 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-06-22 09:25:35 (GMT)
commit67bc2d54882950ed947b21db2a93fb1f80dfde12 (patch)
tree73c083b76945e5499db8164fca8e6e75d969e669 /Xamarin.Forms.ControlGallery.Android
parentbec60be8347a4dc8cbc058c522b65fa9a51a9788 (diff)
downloadxamarin-forms-67bc2d54882950ed947b21db2a93fb1f80dfde12.zip
xamarin-forms-67bc2d54882950ed947b21db2a93fb1f80dfde12.tar.gz
xamarin-forms-67bc2d54882950ed947b21db2a93fb1f80dfde12.tar.bz2
[iOS/Android] Fixes "jumping" when navigation to a page with a NavigationBar from a page without one (#962)
* Add repro * [iOS] Set IgnoreContainerArea when no Nav Bar * [Android] Layout bar and page at the same time * Add custom renderer to turn off transitions * Fix test case number * Remove superfluous category set * Fix test automation, add TabbedPage
Diffstat (limited to 'Xamarin.Forms.ControlGallery.Android')
-rw-r--r--Xamarin.Forms.ControlGallery.Android/CustomRenderers.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Android/CustomRenderers.cs b/Xamarin.Forms.ControlGallery.Android/CustomRenderers.cs
index 4c6c1a8..4f1813f 100644
--- a/Xamarin.Forms.ControlGallery.Android/CustomRenderers.cs
+++ b/Xamarin.Forms.ControlGallery.Android/CustomRenderers.cs
@@ -31,6 +31,8 @@ using Xamarin.Forms.Controls.Issues;
[assembly: ExportRenderer(typeof(Bugzilla42000._42000NumericEntryNoDecimal), typeof(EntryRendererNoDecimal))]
[assembly: ExportRenderer(typeof(Bugzilla42000._42000NumericEntryNoNegative), typeof(EntryRendererNoNegative))]
+[assembly: ExportRenderer(typeof(Xamarin.Forms.Controls.Issues.NoFlashTestNavigationPage), typeof(Xamarin.Forms.ControlGallery.Android.NoFlashTestNavigationPage))]
+
#if PRE_APPLICATION_CLASS
#elif FORMS_APPLICATION_ACTIVITY
#else
@@ -515,5 +517,13 @@ namespace Xamarin.Forms.ControlGallery.Android
return base.GetDigitsKeyListener(inputTypes);
}
}
+
+ public class NoFlashTestNavigationPage : Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer
+ {
+ protected override void SetupPageTransition(global::Android.Support.V4.App.FragmentTransaction transaction, bool isPush)
+ {
+ transaction.SetTransition((int)FragmentTransit.None);
+ }
+ }
}