LiveFolderIconpublic class LiveFolderIcon extends FolderIcon
Methods Summary |
---|
public boolean | acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)
return false;
| static com.android.launcher.LiveFolderIcon | fromXml(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 void | onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)
| public void | onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)
| public void | onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)
| public void | onDrop(DragSource source, int x, int y, int xOffset, int yOffset, java.lang.Object dragInfo)
|
|