Android: "textview Does Not Support Text Selection. Action Mode Cancelled"
'TextView does not support text selection. Action mode cancelled.' I get this error when I try to bring up the context menu in an EditText in a PopupWindow in Android. The selectio
Solution 1:
I have check around one hour, i found the solution: setwidth = wrapcontent (it's working with me)
Solution 2:
If TextView
, have you tried textView.setTextIsSelectable(true);
Or if EditText
, editText.setSelectAllOnFocus(true);
Solution 3:
I believe this is an Android bug, and I just reported it as such: https://code.google.com/p/android/issues/detail?id=62508
We will see whether Google agrees.
Solution 4:
try
et.setTextIsSelectable(true);
et.setFocusable(true);
et.setFocusableInTouchMode(true);
Solution 5:
Check if you have
android:focusable="false"
or
android:focusableInTouchMode="false"
in your xml
layout.
Post a Comment for "Android: "textview Does Not Support Text Selection. Action Mode Cancelled""