Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 037ab306 authored by Pierre Barbier de Reuille's avatar Pierre Barbier de Reuille
Browse files

Define system resources for widget's system parameters

See go/widget-parameters for details.

Bug: 180086181
Test: atest CtsAppWidgetSources:android.appwidget.cts.AppWidgetDimensionsTest
Change-Id: Id0e754e1bdcc41a6f7ae6c79d8500d2ef543cb3f
parent 44a417e0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1740,6 +1740,9 @@ package android {
    field public static final int dialog_min_width_minor = 17104900; // 0x1050004
    field public static final int notification_large_icon_height = 17104902; // 0x1050006
    field public static final int notification_large_icon_width = 17104901; // 0x1050005
    field public static final int system_app_widget_background_radius = 17104904; // 0x1050008
    field public static final int system_app_widget_inner_radius = 17104905; // 0x1050009
    field public static final int system_app_widget_internal_padding = 17104906; // 0x105000a
    field public static final int thumbnail_height = 17104897; // 0x1050001
    field public static final int thumbnail_width = 17104898; // 0x1050002
  }
+8 −0
Original line number Diff line number Diff line
@@ -926,4 +926,12 @@
    <dimen name="controls_thumbnail_image_max_height">140dp</dimen>
    <!-- The maximum width of a thumbnail in a ThumbnailTemplate. The image will be reduced to that width in case they are bigger.-->
    <dimen name="controls_thumbnail_image_max_width">280dp</dimen>

    <!-- System-provided radius for the background view of app widgets. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_background_radius">16dp</dimen>
    <!-- System-provided radius for inner views on app widgets. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_inner_radius">8dp</dimen>
    <!-- System-provided padding for inner views on app widgets. The resolved value of this resource may change at runtime. -->
    <dimen name="system_app_widget_internal_padding">16dp</dimen>

</resources>
+5 −0
Original line number Diff line number Diff line
@@ -3105,6 +3105,11 @@

  <public-group type="dimen" first-id="0x01050008">
    <!-- dimension definitions go here -->

    <!-- System-provided dimensions for app widgets. -->
    <public name="system_app_widget_background_radius" />
    <public name="system_app_widget_inner_radius" />
    <public name="system_app_widget_internal_padding" />
  </public-group>

  <public-group type="bool" first-id="0x01110007">