FileDocCategorySizeDatePackage
LiveFolderIcon.javaAPI DocAndroid 1.5 API2523Wed May 06 22:42:46 BST 2009com.android.launcher

LiveFolderIcon

public class LiveFolderIcon extends FolderIcon

Fields Summary
Constructors Summary
public LiveFolderIcon(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
public LiveFolderIcon(android.content.Context context)

        super(context);
    
Methods Summary
public booleanacceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)

        return false;
    
static com.android.launcher.LiveFolderIconfromXml(int resId, Launcher launcher, android.view.ViewGroup group, LiveFolderInfo folderInfo)


        LiveFolderIcon icon = (LiveFolderIcon)
                LayoutInflater.from(launcher).inflate(resId, group, false);

        final Resources resources = launcher.getResources();
        Drawable d = folderInfo.icon;
        if (d == null) {
            resources.getDrawable(R.drawable.ic_launcher_folder);
            d = Utilities.createIconThumbnail(d, launcher);
            folderInfo.filtered = true;
        }
        icon.setCompoundDrawablesWithIntrinsicBounds(null, d, null, null);
        icon.setText(folderInfo.title);
        icon.setTag(folderInfo);
        icon.setOnClickListener(launcher);
        
        return icon;
    
public voidonDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)

    
public voidonDragExit(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)

    
public voidonDragOver(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)

    
public voidonDrop(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)