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 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); | |
} | |
} | |
} |
Right on! Thanks, bro!
am a bit confused am new shuld that go into the app.cs or should i make a new item
Thank You!!!! It worked
nicely
thanks it works!!!
thanks it worked
Thank you so much, It worked, but it applies to all entries, is there a way to apply this on just some entries? I want one of my entries to have the bottom line
Control.SetBackgroundColor(global::Android.Graphics.Color.Transparent); Had to use global::. Why is that?
You are just GREAT!
@rk2022 Try creating an effect with this Android implementation, then apply it to only the Entry views you want
Thanks :)
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
It works! Thank you so much for saving my time :)