Android监听键盘上的确定键等

mETCommentContent.setOnEditorActionListener(new OnEditorActionListener() {                

           @Override  

            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { 

                if (actionId == EditorInfo.IME_ACTION_DONE) { 

                    hideSoftInput(); 

                } 

                return false; 

            } 

        }); 

 

转自:http://blog.csdn.net/android_xiaoqi/article/details/7971518

你可能感兴趣的:(android,UI)