I have successfully achuieved the clear button in iOS but facing trouble to add in Android. Please guide me how can i add the clear button in Android.
This works nice in iOS
public class TextboxRenderer : EntryRenderer
{
protected override void OnElementChanged (ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged (e);
if (this.Control == null) {
return;
}
var entry = this.Control as UITextField;
entry.ClearButtonMode = UITextFieldViewMode.WhileEditing;
}
}