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

Widget

public class Widget extends ItemInfo
Represents one instance of a Launcher widget, such as search.

Fields Summary
int
layoutResource
Constructors Summary
Methods Summary
static com.android.launcher.WidgetmakeSearch()

        Widget w = new Widget();
        w.itemType = LauncherSettings.Favorites.ITEM_TYPE_WIDGET_SEARCH;
        w.spanX = 4;
        w.spanY = 1;
        w.layoutResource = R.layout.widget_search;
        return w;