New widget picker for keyguard widgets

New layout for widget picker is still not up to
final design, but this change prepares all the
backend work

Also, remove use of features filter from the
picker, since this is being removed from the API

Change-Id: I9b332e22cf34b98c20c720602c920d28aed01d6c
This commit is contained in:
Michael Jurka
2012-10-30 15:32:27 -07:00
parent 523d9dc460
commit 0b2bd8d11d
21 changed files with 925 additions and 360 deletions

View File

@@ -201,7 +201,7 @@ public class ActivityPicker extends AlertActivity implements
/**
* Item that appears in a {@link PickAdapter} list.
*/
public static class Item {
public static class Item implements AppWidgetLoader.LabelledItem {
protected static IconResizer sResizer;
protected IconResizer getResizer(Context context) {
@@ -262,6 +262,10 @@ public class ActivityPicker extends AlertActivity implements
}
return intent;
}
public CharSequence getLabel() {
return label;
}
}
private final LayoutInflater mInflater;
@@ -471,5 +475,5 @@ public class ActivityPicker extends AlertActivity implements
public int getOpacity() {
return PixelFormat.TRANSLUCENT;
}
}
}
}