mirror of
https://github.com/bitwarden/android.git
synced 2026-05-21 11:56:35 -05:00
26 lines
773 B
C#
26 lines
773 B
C#
using Android.Content;
|
|
using Bit.Droid.Renderers.BoxedView;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.Android;
|
|
|
|
[assembly: ExportRenderer(typeof(Entry), typeof(CustomEntryRenderer))]
|
|
namespace Bit.Droid.Renderers.BoxedView
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|