I want to create an EditText with the following changes:
- Clicking on it will not show the keyboard
- After SINGLE, SHORT click it will get into selection mode (When I say selection mode I mean the mode where you can select a section of the text (with two pointers). You can get to this mode by long clicking on the text.)
- After text is selected the copy/paste/cut toolbar will not be shown
For the first, I guess I can create an OnTouchListener and return true immediately, but then it will block me from doing the second thing (which I have no idea how to do).
I looked for a command that gets the EditText into selection mode, but all I could find was a way to get the selected text from it...
Thanks!
EDIT: I successfully made 1 and 2, but the toolbar still shows (tried unregisterForContextMenu
)