mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
no max lines on android labels
This commit is contained in:
parent
6d06f2212e
commit
d4f6e9c587
2 changed files with 17 additions and 0 deletions
|
@ -287,6 +287,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AutofillActivity.cs" />
|
<Compile Include="AutofillActivity.cs" />
|
||||||
<Compile Include="AutofillCredentials.cs" />
|
<Compile Include="AutofillCredentials.cs" />
|
||||||
|
<Compile Include="Controls\CustomLabelRenderer.cs" />
|
||||||
<Compile Include="Controls\CustomSearchBarRenderer.cs" />
|
<Compile Include="Controls\CustomSearchBarRenderer.cs" />
|
||||||
<Compile Include="Controls\CustomButtonRenderer.cs" />
|
<Compile Include="Controls\CustomButtonRenderer.cs" />
|
||||||
<Compile Include="Controls\HybridWebViewRenderer.cs" />
|
<Compile Include="Controls\HybridWebViewRenderer.cs" />
|
||||||
|
|
16
src/Android/Controls/CustomLabelRenderer.cs
Normal file
16
src/Android/Controls/CustomLabelRenderer.cs
Normal file
|
@ -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<Label> e)
|
||||||
|
{
|
||||||
|
base.OnElementChanged(e);
|
||||||
|
Control.SetMaxLines(int.MaxValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue