Code example for Button

Methods: setEnabled

0
 
    private void setButtonState(int index) {
        if (index == 0) {
            mDecreaseFontButton.setEnabled(false);
        } else if (index == mFontTwipValues.length - 1) {
            mIncreaseFontButton.setEnabled(false);
        } 
    } 
 
    /** 
     * Returns the name of the font size (ex: "Small") at the currently saved preference value. 
     */ 
    protected String getSavedFontSizeName() {
        return mFontSizeNames[mSavedFontIndex];
    } 
 
    private float convertTwipStrToPT(String twip) {
        return Float.parseFloat(twip) / TWIP_TO_PT_RATIO;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java