Created a custom Entry renderer to allow me to select all text in an entry box when it gains focus.
- Control.SetSelectAllOnFocus(true) - Works in UI but not programmatically. Click off entry then click back selects all, but restricts entry to the size of selected text. Eg auto selects '12', you type '345' and it shows '45' as selected text?? Triggering focus in code does not trigger select all.
- Control.SelectAll() - Attached event handler for FocusChange, call SelectAll() and nothing is selected.
- Control.SetSelection() - As 2, in FocusChange, SetSelection(0, Control.Text.Length -1) and nothing is selected.
Is there a working way to select all text in a text entry in an Android?