Code example for EditText

Methods: getTextsetText, requestFocus

0
        hideSoftInput(); 
    } 
 
    public void show() { 
        super.show(); 
        mEditText.requestFocus();
        mEditText.setText("");
        Spannable span = (Spannable) mEditText.getText();
        span.setSpan(this, 0, span.length(), 
                     Spannable.SPAN_INCLUSIVE_INCLUSIVE);
        setMatchesFound(0); 
        disableButtons(); 
    } 
     
    // TextWatcher methods 
    public void beforeTextChanged(CharSequence s, 
                                  int start, 
                                  int count, 
                                  int after) {
    }