如何手動顯示 或 隱藏 SW keyboard

 

首先 

InputMethodManager imm = (InputMethodManager)
getContext().getSystemService(Context.INPUT_METHOD_SERVICE);

顯示

imm.showSoftInput(this, 0);

隱藏

imm.hideSoftInputFromWindow(this.getWindowToken(), 0); 

arrow
arrow
    文章標籤
    Android
    全站熱搜

    笨海豚 發表在 痞客邦 留言(0) 人氣()