diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-22 04:42:52 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-22 04:42:52 -0400 |
commit | ba0b4e70d93f91497a7bc157fe7f3838942dfb15 (patch) | |
tree | 6b5ab363eabfe1c95e6908c5e4ca084c0e5f9086 /app/src/main/res | |
parent | 7f371a95320a1d8aae29f8ca15f7fd972367b60e (diff) | |
download | frost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.tar.gz frost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.tar.bz2 frost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.zip |
Fix icon loading
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_refresh_24dp.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/layout/widget_notifications.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/values/dimens.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/notification_widget_info.xml | 8 |
4 files changed, 25 insertions, 10 deletions
diff --git a/app/src/main/res/drawable/ic_refresh_24dp.xml b/app/src/main/res/drawable/ic_refresh_24dp.xml new file mode 100644 index 00000000..cc2d1e04 --- /dev/null +++ b/app/src/main/res/drawable/ic_refresh_24dp.xml @@ -0,0 +1,5 @@ +<vector android:height="24dp" android:tint="#FFFFFF" + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + <path android:fillColor="#FF000000" android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z"/> +</vector> diff --git a/app/src/main/res/layout/widget_notifications.xml b/app/src/main/res/layout/widget_notifications.xml index fd68e20a..098bb9eb 100644 --- a/app/src/main/res/layout/widget_notifications.xml +++ b/app/src/main/res/layout/widget_notifications.xml @@ -1,22 +1,30 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" - android:layout_width="match_parent" android:layout_height="match_parent"> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/widget_layout_container" + android:orientation="vertical"> + <LinearLayout - android:id="@+id/widget_layout_main" + android:id="@+id/widget_layout_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingStart="@dimen/kau_padding_small" android:paddingEnd="@dimen/kau_padding_small"> + <ImageView android:id="@+id/img_refresh" android:layout_width="@dimen/toolbar_icon_size" + android:layout_margin="@dimen/kau_padding_small" android:layout_height="@dimen/toolbar_icon_size" - android:layout_gravity="center_vertical"/> + android:layout_gravity="center_vertical" + android:src="@drawable/ic_refresh_24dp" /> </LinearLayout> + <ListView android:id="@+id/widget_notification_list" android:layout_width="match_parent" - android:layout_height="match_parent"> - </ListView> + android:layout_height="0dp" + android:layout_weight="1" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 53dad5ef..847e74cb 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -10,5 +10,5 @@ <dimen name="intro_bar_height">64dp</dimen> <dimen name="badge_icon_size">20dp</dimen> - <dimen name="toolbar_icon_size">18dp</dimen> + <dimen name="toolbar_icon_size">24dp</dimen> </resources> diff --git a/app/src/main/res/xml/notification_widget_info.xml b/app/src/main/res/xml/notification_widget_info.xml index 3cb97ed7..2b8b4fb5 100644 --- a/app/src/main/res/xml/notification_widget_info.xml +++ b/app/src/main/res/xml/notification_widget_info.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"> - -</appwidget-provider>
\ No newline at end of file +<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" + android:initialKeyguardLayout="@layout/widget_notifications" + android:initialLayout="@layout/widget_notifications" + android:minHeight="110dp" + android:minWidth="180dp"/> |