Skip to content

Commit

Permalink
Add reconfiguration and description to widgets for Android 12 (#1825)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi committed Oct 24, 2021
1 parent 406da5c commit 578ec93
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Expand Up @@ -633,4 +633,9 @@ like to connect to:</string>
<string name="wear_os_category">Wear OS</string>
<string name="wear_os_settings_title">Wear OS Settings</string>
<string name="wear_os_settings_summary">Manage Wear OS App</string>
<string name="camera_widget_desc">Displays the latest image from the camera</string>
<string name="button_widget_desc">Call any service</string>
<string name="entity_widget_desc">Current state and attribute of any entity</string>
<string name="media_player_widget_desc">Control any media player and see current now playing image</string>
<string name="template_widget_desc">Render any template with HTML formatting</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/xml/button_widget_info.xml
Expand Up @@ -9,5 +9,7 @@
android:minResizeHeight="40dp"
android:resizeMode="vertical|horizontal"
android:updatePeriodMillis="86400000"
android:widgetFeatures="reconfigurable"
android:description="@string/button_widget_desc"
android:widgetCategory="home_screen"
android:previewImage="@drawable/widget_example_button" />
1 change: 1 addition & 0 deletions app/src/main/res/xml/camera_widget_info.xml
Expand Up @@ -8,4 +8,5 @@
android:resizeMode="vertical|horizontal"
android:updatePeriodMillis="3600000"
android:widgetCategory="home_screen"
android:description="@string/camera_widget_desc"
android:previewImage="@drawable/widget_example_camera" />
2 changes: 2 additions & 0 deletions app/src/main/res/xml/entity_widget_info.xml
Expand Up @@ -9,5 +9,7 @@
android:minResizeHeight="40dp"
android:resizeMode="vertical|horizontal"
android:updatePeriodMillis="1800000"
android:widgetFeatures="reconfigurable"
android:description="@string/entity_widget_desc"
android:widgetCategory="home_screen"
android:previewImage="@drawable/widget_example_entity" />
2 changes: 2 additions & 0 deletions app/src/main/res/xml/media_player_control_widget_info.xml
Expand Up @@ -6,5 +6,7 @@
android:minWidth="250dp"
android:minHeight="40dp"
android:updatePeriodMillis="86400000"
android:widgetFeatures="reconfigurable"
android:description="@string/media_player_widget_desc"
android:widgetCategory="home_screen"
android:previewImage="@drawable/widget_example_media_player_controls" />
2 changes: 2 additions & 0 deletions app/src/main/res/xml/template_widget_info.xml
Expand Up @@ -8,6 +8,8 @@
android:minResizeWidth="40dp"
android:minResizeHeight="40dp"
android:resizeMode="vertical|horizontal"
android:widgetFeatures="reconfigurable"
android:description="@string/template_widget_desc"
android:updatePeriodMillis="1800000"
android:widgetCategory="home_screen"
android:previewImage="@drawable/widget_example_template" />

0 comments on commit 578ec93

Please sign in to comment.