using Android.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using Application = Android.App.Application; [assembly: ExportRenderer(typeof(XAMARINChangeFocus.Controls.BorderlessEntry), typeof(XAMARINChangeFocus.Droid.BorderlessEntryRenderer))] namespace XAMARINChangeFocus.Droid { public class BorderlessEntryRenderer : EntryRenderer { public BorderlessEntryRenderer() : base(Application.Context) { } protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); if (this.Control != null) { this.Control.SetBackground(null); Control.Gravity = GravityFlags.CenterVertical; Control.SetPadding(0, 0, 0, 0); } } } }