@Override
 public void setEnabled(boolean enabled) {
   Drawable icon = getIcon();
   if (icon != null) {
     icon.setAlpha(enabled ? GeminiUtils.ORIGINAL_IMAGE : GeminiUtils.IMAGE_GRAY);
   } else {
     Xlog.d(TAG, "fail to set icon alpha due to icon is null");
   }
   super.setEnabled(enabled);
 }
Ejemplo n.º 2
0
 @Override
 public void setEnabled(boolean enabled) {
   Drawable icon = getIcon();
   if (icon != null) {
     icon.setAlpha(enabled ? ORIGINAL_IMAGE : IMAGE_GRAY);
   } else {
     Log.d(TAG, "fail to set icon alpha due to icon is null");
   }
   super.setEnabled(enabled);
   mIsEnaled = enabled;
 }