EditText is a TextView that it can make a TextView better [
so suppose you have a TextView
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="i am a text" android:textColor="#243b03" />
and you want it to be edited with the click of a button; in your onclick add this
TextView.setCursorVisible(true); TextView.setFocusableInTouchMode(true); TextView.setInputType(InputType.TYPE_CLASS_TEXT); TextView.requestFocus();
they are not static, but I made it static so that you know what methods of the view object are. About your button, after entering text, you will change the text to "done" or something else, Button will continue from TextView , so treat it as if it were - study on TextWatcher
Elltz source share