In my app I have EditText element but I use it like TextView (it is not editable).
I want to select all text in this field by click on some button. I do it with the next code
Selection.setSelection((Spannable) et.getText(),0, et.getText().length());
et.setSelected(true);
It works fine and text selected but after that I can not change ends of selection. How can I call selection handles programmatically?
Also I blocked OnLongClick because I need only Copy option and add it in custom button.