old/sms&mms
soft keyboard 출력 방법
jazzlife
2010. 7. 22. 17:52
; 핸들러로 지연시키지 않으면 안 뜬다...이상해...
Handler keyPadHandler = new Handler();
keyPadHandler.postDelayed(new Runnable() {
public void run() {
if(mRecipientsEditor!= null){
if(mRecipientsEditor.getVisibility()== View.VISIBLE){
InputMethodManager inputMethodManager =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.showSoftInput(mRecipientsEditor, 0);
}
}
}
}, 100);
Handler keyPadHandler = new Handler();
keyPadHandler.postDelayed(new Runnable() {
public void run() {
if(mRecipientsEditor!= null){
if(mRecipientsEditor.getVisibility()== View.VISIBLE){
InputMethodManager inputMethodManager =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.showSoftInput(mRecipientsEditor, 0);
}
}
}
}, 100);