I want to select some text in edittext, but I don't know how to do it.
I need a method like this: when the user touches the screen and then drags and turns the screen off, the text that is being dragged will be selected. (my english is bad, so don't mind, thanks)
textView = (EditText) findViewById(R.id.textvie1);
InputStream inputStream=getResources().openRawResource(value+0x7f040000);
String string = reader.getString(inputStream);textView.setMovementMethod(new ScrollingMovementMethod());
textView.setText(string);
source
share