Code example for Button

Methods: setEnabled, setFocusable

0
        } 
    } 
 
    private void updateSendButton() { 
        if (null != mSendButton) {
            mSendButton.setEnabled(mCanSend);
            mSendButton.setFocusable(mCanSend);
        } 
    } 
 
    public void hideView() { 
        if (mView != null) {
            ((View)mView).setVisibility(View.GONE);
        } 
    } 
 
    private View getStubView(int stubId, int viewId) {
        View view = findViewById(viewId);
        if (view == null) {
            ViewStub stub = (ViewStub) findViewById(stubId);
            view = stub.inflate();