Code example for Editable

Methods: toString

0
 
            public void onTextChanged(CharSequence s, int start, int before, int count) {
            } 
 
            public void afterTextChanged(Editable s) {
                String text = s.toString();
                doSearch(text);
                setSearchButtonDrawable(text);
            } 
        }); 
//                text.setOnEditorActionListener(new TextView.OnEditorActionListener() { 
//                    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { 
//                        if (actionId == 1000) { 
//                            final View next = text.focusSearch(View.FOCUS_FORWARD); 
//                            if (next != null) { 
//                                next.requestFocus(); 
//                            } 
//                            return true; 
//                        } 
//                        return false; 
//                    }