Created
March 21, 2016 08:25
-
-
Save dkudelko/42f2d5bc1c8b3aba1d3d to your computer and use it in GitHub Desktop.
remove a default bottom line on android entry Xamarin.Forms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Mobile.Droid.Renderers; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.Android; | |
[assembly: ExportRenderer(typeof(Entry), typeof(CustomEntryRenderer_Droid))] | |
namespace Mobile.Droid.Renderers | |
{ | |
public class CustomEntryRenderer_Droid : EntryRenderer | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
{ | |
base.OnElementChanged(e); | |
Control?.SetBackgroundColor(Android.Graphics.Color.Transparent); | |
} | |
} | |
} |
this remove placeholder text ?
This is pure gold! Thanks!
this remove placeholder text ?
yes,,set the placeholder color and background color (in native) as same
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks :)