After the second press, I need to return the button to its original state and so that it can work again

Issue @Override public void onClick(View view) { editText.setVisibility(View.VISIBLE); editText.setEnabled(true); name.setVisibility(View.INVISIBLE); button1.setText("Confirm"); button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { editText.setVisibility(View.INVISIBLE); editText.setEnabled(false); name.setVisibility(View.VISIBLE); button1.setText("Edit"); } }); } }); I wanted to change the information of the button from "edit" to

Continue reading