}
protected override EditText EditText => Control;
+
+ protected override void UpdateIsReadOnly()
+ {
+ base.UpdateIsReadOnly();
+ bool isReadOnly = !Element.IsReadOnly;
+ Control.SetCursorVisible(isReadOnly);
+ }
}
public abstract class EntryRendererBase<TControl> : ViewRenderer<Entry, TControl>, ITextWatcher, TextView.IOnEditorActionListener
}
}
- void UpdateIsReadOnly()
+ protected virtual void UpdateIsReadOnly()
{
bool isReadOnly = !Element.IsReadOnly;
Control.FocusableInTouchMode = isReadOnly;
Control.Focusable = isReadOnly;
- Control.SetCursorVisible(isReadOnly);
}
}
}