0

I have used textView.setTextIsSelectable(true) or android:textIsSelectable="true" on textview. It is working somewhere but on some textviews it is showing the below error.

W/TextView: TextView does not support text selection. Action mode cancelled.

I have tried

 android:focusable="true"
        android:focusableInTouchMode="true"

Also on textviews but it is also not working, can you please help me to figure out why it is working on some textviews and not working on others.

Thanks a lot in advanced.

Abhinav singh
  • 1,448
  • 1
  • 14
  • 31
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78

1 Answers1

0

As answered by Yojimbo here:

If TextView, have you tried textView.setTextIsSelectable(true); Or if EditText, editText.setSelectAllOnFocus(true);

Hope this is Help you.

David Walschots
  • 12,279
  • 5
  • 36
  • 59
InsaneCat
  • 2,115
  • 5
  • 21
  • 40
  • Please Refer Link:- http://stackoverflow.com/questions/15857755/android-textview-does-not-support-text-selection-action-mode-cancelled – InsaneCat Jan 07 '16 at 12:46
  • I am using textView and already tried textView.setTextIsSelectable(true); , but it is not making any change. Yes, these textviews are inside a listview, will that be any problem with this ?? – Prithniraj Nicyone Jan 07 '16 at 12:51