Code example for EditText

Methods: setFocusable

0
    public int getCurrent() { 
        /* This sets the edittext to be unfocusable so that the widget is unfocused. 
        *  It allows the numberpicker to update itself with what's in the widget when the user presses OK 
        *  and the user is still focused on the edittext widget. This might cause regressions so YMMV. 
        * */ 
        mText.setFocusable(false);
        return mCurrent;
    } 
}