I have a EditText which I am presenting as disabled so that user cannot edit the contents and also to avoid popping-up keyboard. But now I want to capture onclick event in the EditText and identify the individual words that are being clicked.
Any help is most welcome.
Thanks,
Balkrishna.
On your
EditTextset attributesandroid:focusable="false"andandroid:enabled="true".And set
OnClickListenerto thatEditText. The click on that Edittext triggers theonClick()method but it can’t be edited. I just tried it.