mirror of
https://github.com/bitwarden/android.git
synced 2024-12-28 20:08:43 +03:00
28 lines
943 B
C#
28 lines
943 B
C#
using Android.Content;
|
|
using Android.Views.InputMethods;
|
|
using Bit.Droid.Renderers;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.Android;
|
|
|
|
[assembly: ExportRenderer(typeof(Entry), typeof(CustomEntryRenderer))]
|
|
namespace Bit.Droid.Renderers
|
|
{
|
|
public class CustomEntryRenderer : EntryRenderer
|
|
{
|
|
public CustomEntryRenderer(Context context)
|
|
: base(context)
|
|
{ }
|
|
|
|
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
|
|
{
|
|
base.OnElementChanged(e);
|
|
if(Control != null && e.NewElement != null)
|
|
{
|
|
Control.SetPadding(Control.PaddingLeft, Control.PaddingTop - 10, Control.PaddingRight,
|
|
Control.PaddingBottom + 20);
|
|
Control.ImeOptions = Control.ImeOptions | (ImeAction)ImeFlags.NoPersonalizedLearning |
|
|
(ImeAction)ImeFlags.NoExtractUi;
|
|
}
|
|
}
|
|
}
|
|
}
|