Is there any way to programatically select text in a TextView?
问题 I have a TextView that I'm looking to allow the user to search in for a specific string. If the string is found, it should highlight. Using a background span is too slow and awkward, so I am trying to figure out if I can just have it select the string. I know with EditText this would be possible using setSelection() , but I don't want the user to be able to edit the text, while still being able to manually highlight text, which I can't seem to do manage with an EditText . I guess, then it's