mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
identity fields and notes
This commit is contained in:
25
src/Android/Renderers/CustomEditorRenderer.cs
Normal file
25
src/Android/Renderers/CustomEditorRenderer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Android.Content;
|
||||
using Bit.Droid.Renderers.BoxedView;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Platform.Android;
|
||||
|
||||
[assembly: ExportRenderer(typeof(Entry), typeof(CustomEditorRenderer))]
|
||||
namespace Bit.Droid.Renderers.BoxedView
|
||||
{
|
||||
public class CustomEditorRenderer : EditorRenderer
|
||||
{
|
||||
public CustomEditorRenderer(Context context)
|
||||
: base(context)
|
||||
{ }
|
||||
|
||||
protected override void OnElementChanged(ElementChangedEventArgs<Editor> e)
|
||||
{
|
||||
base.OnElementChanged(e);
|
||||
if(Control != null && e.NewElement != null)
|
||||
{
|
||||
Control.SetPadding(Control.PaddingLeft, Control.PaddingTop - 10, Control.PaddingRight,
|
||||
Control.PaddingBottom + 20);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user