Loading api/current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -673,6 +673,8 @@ package android { field public static final int minHeight = 16843072; // 0x1010140 field public static final int minLevel = 16843185; // 0x10101b1 field public static final int minLines = 16843094; // 0x1010156 field public static final int minResizeHeight = 16843690; // 0x10103aa field public static final int minResizeWidth = 16843689; // 0x10103a9 field public static final int minSdkVersion = 16843276; // 0x101020c field public static final int minWidth = 16843071; // 0x101013f field public static final int mode = 16843134; // 0x101017e Loading Loading @@ -3929,6 +3931,8 @@ package android.appwidget { field public int initialLayout; field public java.lang.String label; field public int minHeight; field public int minResizeHeight; field public int minResizeWidth; field public int minWidth; field public int previewImage; field public android.content.ComponentName provider; core/java/android/appwidget/AppWidgetHost.java +4 −0 Original line number Diff line number Diff line Loading @@ -261,6 +261,10 @@ public class AppWidgetHost { TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); appWidget.minHeight = TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); appWidget.minResizeWidth = TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); appWidget.minResizeHeight = TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); synchronized (mViews) { v = mViews.get(appWidgetId); Loading core/java/android/appwidget/AppWidgetProviderInfo.java +22 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,8 @@ public class AppWidgetProviderInfo implements Parcelable { public ComponentName provider; /** * Minimum width of the AppWidget, in dp. * The default height of the widget when added to a host, in dp. The widget will get * at least this width, and will often be given more, depending on the host. * * <p>This field corresponds to the <code>android:minWidth</code> attribute in * the AppWidget meta-data file. Loading @@ -62,13 +63,32 @@ public class AppWidgetProviderInfo implements Parcelable { public int minWidth; /** * Minimum height of the AppWidget, in dp. * The default height of the widget when added to a host, in dp. The widget will get * at least this height, and will often be given more, depending on the host. * * <p>This field corresponds to the <code>android:minHeight</code> attribute in * the AppWidget meta-data file. */ public int minHeight; /** * Minimum width (in dp) which the widget can be resized to. This field has no effect if it * is greater than minWidth or if horizontal resizing isn't enabled (see {@link #resizeMode}). * * <p>This field corresponds to the <code>android:minResizeWidth</code> attribute in * the AppWidget meta-data file. */ public int minResizeWidth; /** * Minimum height (in dp) which the widget can be resized to. This field has no effect if it * is greater than minHeight or if vertical resizing isn't enabled (see {@link #resizeMode}). * * <p>This field corresponds to the <code>android:minResizeHeight</code> attribute in * the AppWidget meta-data file. */ public int minResizeHeight; /** * How often, in milliseconds, that this AppWidget wants to be updated. * The AppWidget manager may place a limit on how often a AppWidget is updated. Loading core/res/res/values/attrs.xml +4 −0 Original line number Diff line number Diff line Loading @@ -4913,6 +4913,10 @@ <attr name="minWidth"/> <!-- Minimum height of the AppWidget. --> <attr name="minHeight"/> <!-- Minimum width that the AppWidget can be resized to. --> <attr name="minResizeWidth" format="dimension"/> <!-- Minimum height that the AppWidget can be resized to. --> <attr name="minResizeHeight" format="dimension"/> <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. --> <attr name="updatePeriodMillis" format="integer" /> <!-- A resource id of a layout. --> Loading core/res/res/values/public.xml +2 −0 Original line number Diff line number Diff line Loading @@ -1831,4 +1831,6 @@ <public type="color" name="holo_purple" /> <public type="color" name="holo_blue_bright" /> <public type="attr" name="minResizeWidth" /> <public type="attr" name="minResizeHeight" /> </resources> Loading
api/current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -673,6 +673,8 @@ package android { field public static final int minHeight = 16843072; // 0x1010140 field public static final int minLevel = 16843185; // 0x10101b1 field public static final int minLines = 16843094; // 0x1010156 field public static final int minResizeHeight = 16843690; // 0x10103aa field public static final int minResizeWidth = 16843689; // 0x10103a9 field public static final int minSdkVersion = 16843276; // 0x101020c field public static final int minWidth = 16843071; // 0x101013f field public static final int mode = 16843134; // 0x101017e Loading Loading @@ -3929,6 +3931,8 @@ package android.appwidget { field public int initialLayout; field public java.lang.String label; field public int minHeight; field public int minResizeHeight; field public int minResizeWidth; field public int minWidth; field public int previewImage; field public android.content.ComponentName provider;
core/java/android/appwidget/AppWidgetHost.java +4 −0 Original line number Diff line number Diff line Loading @@ -261,6 +261,10 @@ public class AppWidgetHost { TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); appWidget.minHeight = TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); appWidget.minResizeWidth = TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); appWidget.minResizeHeight = TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); synchronized (mViews) { v = mViews.get(appWidgetId); Loading
core/java/android/appwidget/AppWidgetProviderInfo.java +22 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,8 @@ public class AppWidgetProviderInfo implements Parcelable { public ComponentName provider; /** * Minimum width of the AppWidget, in dp. * The default height of the widget when added to a host, in dp. The widget will get * at least this width, and will often be given more, depending on the host. * * <p>This field corresponds to the <code>android:minWidth</code> attribute in * the AppWidget meta-data file. Loading @@ -62,13 +63,32 @@ public class AppWidgetProviderInfo implements Parcelable { public int minWidth; /** * Minimum height of the AppWidget, in dp. * The default height of the widget when added to a host, in dp. The widget will get * at least this height, and will often be given more, depending on the host. * * <p>This field corresponds to the <code>android:minHeight</code> attribute in * the AppWidget meta-data file. */ public int minHeight; /** * Minimum width (in dp) which the widget can be resized to. This field has no effect if it * is greater than minWidth or if horizontal resizing isn't enabled (see {@link #resizeMode}). * * <p>This field corresponds to the <code>android:minResizeWidth</code> attribute in * the AppWidget meta-data file. */ public int minResizeWidth; /** * Minimum height (in dp) which the widget can be resized to. This field has no effect if it * is greater than minHeight or if vertical resizing isn't enabled (see {@link #resizeMode}). * * <p>This field corresponds to the <code>android:minResizeHeight</code> attribute in * the AppWidget meta-data file. */ public int minResizeHeight; /** * How often, in milliseconds, that this AppWidget wants to be updated. * The AppWidget manager may place a limit on how often a AppWidget is updated. Loading
core/res/res/values/attrs.xml +4 −0 Original line number Diff line number Diff line Loading @@ -4913,6 +4913,10 @@ <attr name="minWidth"/> <!-- Minimum height of the AppWidget. --> <attr name="minHeight"/> <!-- Minimum width that the AppWidget can be resized to. --> <attr name="minResizeWidth" format="dimension"/> <!-- Minimum height that the AppWidget can be resized to. --> <attr name="minResizeHeight" format="dimension"/> <!-- Update period in milliseconds, or 0 if the AppWidget will update itself. --> <attr name="updatePeriodMillis" format="integer" /> <!-- A resource id of a layout. --> Loading
core/res/res/values/public.xml +2 −0 Original line number Diff line number Diff line Loading @@ -1831,4 +1831,6 @@ <public type="color" name="holo_purple" /> <public type="color" name="holo_blue_bright" /> <public type="attr" name="minResizeWidth" /> <public type="attr" name="minResizeHeight" /> </resources>