-1
android:cursorVisible="false"
android:focusableInTouchMode="false"
android:focusable="false"
android:selectAllOnFocus="false"
android:longClickable="false"
android:textIsSelectable="false"

I have applied these constraints on my editText, Everything is working fine, only problem is when user tap for long text gets selected.

  • 1
    Possible duplicate of [How to disable copy/paste from/to EditText](http://stackoverflow.com/questions/6275299/how-to-disable-copy-paste-from-to-edittext) – Maheshwar Ligade Feb 05 '16 at 15:15

2 Answers2

0

As DArkO has answered on a similar question:

"you can return true in your onLongClick listener onLongClick method? that means that you have consumed the event and it wont be passed further along."

The onLongClick listener should be added in your Java Activity.

cdslijngard
  • 196
  • 1
  • 10
0

Actually you can set cursor to blink at the end of the text by reading the content length of your text and then display the cursor over there.. Code for that would be..

editProfileUserName.setSelection(editProfileUserName.getText().length()); //This line will take the selection at last index of text.

editProfileUserName.setCursorVisible(true);