Ejemplo 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;
 }
Ejemplo n.º 2
0
 public Drawable getPreviewIcon(KeyboardIconsSet iconSet) {
   return mPreviewIconId != ICON_UNDEFINED
       ? iconSet.getIconDrawable(mPreviewIconId)
       : iconSet.getIconDrawable(mIconId);
 }