edittext獲取焦點(diǎn) android開發(fā)怎么讓打開一個(gè)activity時(shí)edittext獲得焦點(diǎn)之后自動(dòng)彈出輸入鍵盤?
android開發(fā)怎么讓打開一個(gè)activity時(shí)edittext獲得焦點(diǎn)之后自動(dòng)彈出輸入鍵盤?//獲取編輯框焦點(diǎn)editText.setFocusable設(shè)置焦點(diǎn)(true)//打開IIInputM
android開發(fā)怎么讓打開一個(gè)activity時(shí)edittext獲得焦點(diǎn)之后自動(dòng)彈出輸入鍵盤?
//獲取編輯框焦點(diǎn)editText.setFocusable設(shè)置焦點(diǎn)(true)//打開IIInputMethodManager IMM=(inputmethodmanager)getsystemservice(Context.INPUT方法(服務(wù))imm.toggleSoftInput輸入(0, InputMethodManager.HIDE如果要關(guān)閉清單文件中的“活動(dòng)”屬性,則不可用android:windowSoftInputMode=“隱藏狀態(tài)”