summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.Android
diff options
context:
space:
mode:
authorSamantha Houts <samhouts@users.noreply.github.com>2017-03-23 16:12:41 -0700
committerE.Z. Hart <hartez@users.noreply.github.com>2017-03-23 17:12:41 -0600
commit79ecf97d92331c790b5ba5c99f453607260f40cb (patch)
tree684071dda7a8ae360de7616b724438f1244b5547 /Xamarin.Forms.ControlGallery.Android
parentf27f5a3650f37894d4a1ac925d6fab4dc7350087 (diff)
downloadxamarin-forms-79ecf97d92331c790b5ba5c99f453607260f40cb.tar.gz
xamarin-forms-79ecf97d92331c790b5ba5c99f453607260f40cb.tar.bz2
xamarin-forms-79ecf97d92331c790b5ba5c99f453607260f40cb.zip
[Android] ScrollView can now consume Effects (#836)
* Add repro * [Android] Make ScrollView an IEffectControlProvider
Diffstat (limited to 'Xamarin.Forms.ControlGallery.Android')
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Activity1.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Android/Activity1.cs b/Xamarin.Forms.ControlGallery.Android/Activity1.cs
index 6f2b22dc..b0491b0f 100644
--- a/Xamarin.Forms.ControlGallery.Android/Activity1.cs
+++ b/Xamarin.Forms.ControlGallery.Android/Activity1.cs
@@ -39,6 +39,10 @@ namespace Xamarin.Forms.ControlGallery.Android
protected override void OnAttached ()
{
Control.SetBackgroundColor (global::Android.Graphics.Color.Aqua);
+
+ var childLabel = (Element as ScrollView)?.Content as Label;
+ if (childLabel != null)
+ childLabel.Text = "Success";
}
protected override void OnDetached ()