zoukankan      html  css  js  c++  java
  • 软键盘“确认”、“下一步”、“搜索”等事件监听

    软键盘“确认”、“下一步”、“搜索”等事件监听

        edittext.setOnEditorActionListener(new TextView.OnEditorActionListener() {  
                      
                    @Override  
                    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {  
                        /*判断是否是“GO”键*/  
                        if(actionId == EditorInfo.IME_ACTION_GO){  
                            /*隐藏软键盘*/  
                            InputMethodManager imm = (InputMethodManager) v  
                                    .getContext().getSystemService(  
                                            Context.INPUT_METHOD_SERVICE);  
                            if (imm.isActive()) {  
                                imm.hideSoftInputFromWindow(  
                                        v.getApplicationWindowToken(), 0);  
                            }  
                              
                            edittext.setText("success");  
                            webview.loadUrl(URL);  
                              
                            return true;  
                        }  
                        return false;  
                    }  
                });  
  • 相关阅读:
    RIGHT JOIN 关键字
    LEFT JOIN 关键字
    INNER JOIN 关键字
    连接(JOIN)
    别名
    BETWEEN 操作符
    IN 操作符
    通配符
    LIKE 操作符
    LIMIT 子句
  • 原文地址:https://www.cnblogs.com/hsji/p/5809310.html
Copyright © 2011-2022 走看看