Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • As an alternative you can give a dedicated button to select all text Commented Feb 17, 2020 at 8:19
  • @RahulGaur Yes, but I have a multilines EditText, so I want to select only one part of the text... Commented Feb 17, 2020 at 8:25
  • You can modify this, if you want to select only the first line, you can find the position where return is Commented Feb 17, 2020 at 8:29
  • But how can I select the word where the user does a long click ? Commented Feb 17, 2020 at 8:43
  • Please have a look at this answer on how to get cursor position Commented Feb 17, 2020 at 8:46