From d4f6e9c587ff780b8d6c22f1e562d4bedb277cf8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 3 Nov 2017 17:22:53 -0400 Subject: [PATCH] no max lines on android labels --- src/Android/Android.csproj | 1 + src/Android/Controls/CustomLabelRenderer.cs | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/Android/Controls/CustomLabelRenderer.cs diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 80a87797c..4961d30d2 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -287,6 +287,7 @@ + diff --git a/src/Android/Controls/CustomLabelRenderer.cs b/src/Android/Controls/CustomLabelRenderer.cs new file mode 100644 index 000000000..b504072ca --- /dev/null +++ b/src/Android/Controls/CustomLabelRenderer.cs @@ -0,0 +1,16 @@ +using Bit.Android.Controls; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; + +[assembly: ExportRenderer(typeof(Label), typeof(CustomLabelRenderer))] +namespace Bit.Android.Controls +{ + public class CustomLabelRenderer : LabelRenderer + { + protected override void OnElementChanged(ElementChangedEventArgs