mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Add widget previews. Fixes #1010
This commit is contained in:
parent
86e75a8a38
commit
401df2273b
9 changed files with 20 additions and 7 deletions
|
|
@ -239,7 +239,7 @@
|
|||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.appwidget.provider"
|
||||
android:resource="@xml/task_list_widget_info" />
|
||||
android:resource="@xml/daily_list_widget_info" />
|
||||
</receiver>
|
||||
<receiver android:name=".widget.TodoListWidgetProvider"
|
||||
android:label="@string/widget_todo_list">
|
||||
|
|
@ -247,7 +247,7 @@
|
|||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.appwidget.provider"
|
||||
android:resource="@xml/task_list_widget_info" />
|
||||
android:resource="@xml/todo_list_widget_info" />
|
||||
</receiver>
|
||||
<receiver android:name=".widget.HabitButtonWidgetProvider"
|
||||
android:label="@string/widget_habit_button">
|
||||
|
|
|
|||
BIN
Habitica/res/drawable/widget_dailies.png
Normal file
BIN
Habitica/res/drawable/widget_dailies.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
Habitica/res/drawable/widget_habits.png
Normal file
BIN
Habitica/res/drawable/widget_habits.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
BIN
Habitica/res/drawable/widget_stats.png
Normal file
BIN
Habitica/res/drawable/widget_stats.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
Habitica/res/drawable/widget_todos.png
Normal file
BIN
Habitica/res/drawable/widget_todos.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
|
|
@ -1,9 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:initialLayout="@layout/widget_avatar_stats"
|
||||
android:minHeight="40dp"
|
||||
android:minWidth="180dp"
|
||||
android:updatePeriodMillis="1800000"
|
||||
android:resizeMode="horizontal|vertical">
|
||||
android:initialLayout="@layout/widget_avatar_stats"
|
||||
android:minHeight="40dp"
|
||||
android:minWidth="180dp"
|
||||
android:updatePeriodMillis="1800000"
|
||||
android:previewImage="@drawable/widget_stats"
|
||||
android:resizeMode="horizontal|vertical">
|
||||
|
||||
</appwidget-provider>
|
||||
|
|
|
|||
10
Habitica/res/xml/daily_list_widget_info.xml
Normal file
10
Habitica/res/xml/daily_list_widget_info.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:initialLayout="@layout/widget_task_list"
|
||||
android:minHeight="120dp"
|
||||
android:minWidth="120dp"
|
||||
android:updatePeriodMillis="1800000"
|
||||
android:previewImage="@drawable/widget_dailies"
|
||||
android:resizeMode="horizontal|vertical">
|
||||
|
||||
</appwidget-provider>
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
android:minWidth="120dp"
|
||||
android:updatePeriodMillis="1800000"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:previewImage="@drawable/widget_habits"
|
||||
android:configure="com.habitrpg.android.habitica.ui.activities.HabitButtonWidgetActivity">
|
||||
|
||||
</appwidget-provider>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
android:minHeight="120dp"
|
||||
android:minWidth="120dp"
|
||||
android:updatePeriodMillis="1800000"
|
||||
android:previewImage="@drawable/widget_todos"
|
||||
android:resizeMode="horizontal|vertical">
|
||||
|
||||
</appwidget-provider>
|
||||
Loading…
Reference in a new issue