2012. 8. 27. 09:41

생성

InputMethodManager inputMethodManager =
             (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
         inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);

 

생성시 인자에 대한 문제때문에 toggle로 하였다.

This method toggles the input method window display. If the input window is already displayed, it gets hidden. If not the input window will be displayed.

 

삭제

InputMethodManager inputMethodManager =
            (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
         inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(),0);

 

'Android > 개발팁' 카테고리의 다른 글

EditText 글자 짤림 현상  (0) 2012.08.27
한글 처리 문제  (0) 2012.08.27
타이틀바 없애기  (0) 2012.08.27
화면전환시 다이어로그가 사라지는문제  (0) 2012.08.27
안드로이드 기본  (0) 2012.08.27
Posted by hoonihoon