Android監聽鍵盤上的確定鍵等

[html] 
mETCommentContent.setOnEditorActionListener(new OnEditorActionListener() { 
             
            @Override  www.aiwalls.com
            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { 
                if (actionId == EditorInfo.IME_ACTION_DONE) { 
                    hideSoftInput(); 
                } 
                return false; 
            } 
        }); 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *