public class FolderIcon extends BubbleTextView implements DropTarget {
private UserFolderInfo mInfo;
private Launcher mLauncher;
private Drawable mCloseIcon;
private Drawable mOpenIcon;
// add by hmg for FolderIcon {
private IconCache mIconCache;
private static final int ICON_COUNT = 4; //可显示的缩略图数
private static final int NUM_COL = 2; // 每行显示的个数
private static final int PADDING = 1; //内边距
private static final int MARGIN = 7; //外边距
// add by hmg for FolderIcon }
public FolderIcon(Context context, AttributeSet attrs) {
super(context, attrs);
mIconCache = ((LauncherApplication) mContext.getApplicationContext())
.getIconCache();
}
public FolderIcon(Context context) {
super(context);
mIconCache = ((LauncherApplication) mCo