android - I am unable to make text selectable in edittext. When user tap the text for long it gets selected, I don't want text to get selected or highlighted -


android:cursorvisible="false" android:focusableintouchmode="false" android:focusable="false" android:selectallonfocus="false" android:longclickable="false" android:textisselectable="false" 

i have applied these constraints on edittext, working fine, problem when user tap long text gets selected.

as darko has answered on similar question:

"you can return true in onlongclick listener onlongclick method? means have consumed event , wont passed further along."

the onlongclick listener should added in java activity.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -