Code example for ImageView

Methods: setAlphasetEnabled

0
        return mUpdateInfo;
    } 
 
    private void disablePreferenceViews() { 
        if (mUpdatesButton != null) {
            mUpdatesButton.setEnabled(false);
            mUpdatesButton.setAlpha(DISABLED_ALPHA);
        } 
        if (mUpdatesPref != null) {
            mUpdatesPref.setEnabled(false);
            mUpdatesPref.setBackgroundColor(0);
        } 
    } 
 
    private void updatePreferenceViews() { 
        if (mUpdatesPref != null) {
            mUpdatesPref.setEnabled(true);
            mUpdatesPref.setLongClickable(true);
 
            final boolean enabled = isEnabled();
Stop searching for code, let great code find you!  Add Codota to your java IDE