diff options
author | Rui Marinho <me@ruimarinho.net> | 2017-06-01 11:27:12 +0100 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:24 +0900 |
commit | 8ef1bfe217513817e68d047f35f885969f660fe2 (patch) | |
tree | da1b61bda934de05c16f5d02184b1cd2ad7b076f /Xamarin.Forms.Platform.Android/Renderers | |
parent | 6539216528571dee0536321e8a4a4d10e6e6610e (diff) | |
download | xamarin-forms-8ef1bfe217513817e68d047f35f885969f660fe2.tar.gz xamarin-forms-8ef1bfe217513817e68d047f35f885969f660fe2.tar.bz2 xamarin-forms-8ef1bfe217513817e68d047f35f885969f660fe2.zip |
Fix border on android buttons (#941)
* [Android] Add a button background tracker to handle background and border properties and be shared between button renderers
* [Android]Fix border radius dependency
* [Android] Make sure we always create or updated the background button tracker
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs index e07a2be5..6202a67c 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs @@ -104,6 +104,8 @@ namespace Xamarin.Forms.Platform.Android _textColorSwitcher = new TextColorSwitcher(button.TextColors); button.AddOnAttachStateChangeListener(this); } + if (_backgroundTracker == null) + _backgroundTracker = new ButtonBackgroundTracker(Element, Control); } else { |