OnButtonClick監聽器我想禁用EditText進行編輯,然後再次打開它。禁用後啓用Edittext
下面兩行我殘疾的EditText
editTextWight.setEnabled(false);
editTextWight.setFocusable(false);
但是,當我嘗試打開它失敗。鍵盤無法打開。
editTextWight.setFocusable(true);
editTextWight.setFocusableInTouchMode(true);
editTextWight.setClickable(true);
editTextWight.setEnabled(true);
請幫我啓用EditText。