Esempio n. 1
0
 public Drawable getIcon(KeyboardIconsSet iconSet, int alpha) {
   final int iconId = mEnabled ? mIconId : mDisabledIconId;
   final Drawable icon = iconSet.getIconDrawable(iconId);
   if (icon != null) {
     icon.setAlpha(alpha);
   }
   return icon;
 }
Esempio n. 2
0
 public Drawable getPreviewIcon(KeyboardIconsSet iconSet) {
   return mPreviewIconId != ICON_UNDEFINED
       ? iconSet.getIconDrawable(mPreviewIconId)
       : iconSet.getIconDrawable(mIconId);
 }