I have a onClickListener
on a textview
and the textview has the flag that it\'s selectable
.
But the onclick
event I specified
I Just Used in TextView Xml :
android: TextIsSelectable="true"
android: clickable="true"
and worked fine for me. First Single Tap called the onclick event, And Anytime LongClick Select the text. And Double tap called the two method at a time. But, In my case this was no problem, this was worked for me for calling onclick and select the text as well at a time Without using a bunch of code.
One bonus thing, It works fine also in adapter and recycler view as well.