Redesigned widget (#225)
* Changed widget layout, added vibrant color support for button * Added preview image. Show also albums name after artists name * Updated also small widget with vibrant color support. Added preview images for small and big widgets * Fixed wrong height * Revert classic widget padding, update preview image * Replaced dash with dot, changed background color, show the album name also on big widget. * Updated preview images, switched to jpg * Fixed dot instead of dash for small widget * Changed ripple color for white background * Dark ripple for big widget * Standardize layout * Fix image resizing * Improve image resizing * Fix for songs without album art * Set centerCrop for albums art * Card layout for small widget * Updated preview images * Fix incorrectly rounded corner
This commit is contained in:
parent
58069084d9
commit
0377e43475
19 changed files with 132 additions and 101 deletions
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#AA000000"
|
||||
android:background="@drawable/card"
|
||||
android:columnCount="2"
|
||||
android:gravity="top"
|
||||
android:rowCount="3">
|
||||
|
|
@ -13,7 +13,8 @@
|
|||
android:layout_width="@dimen/app_widget_small_image_size"
|
||||
android:layout_height="@dimen/app_widget_small_image_size"
|
||||
android:scaleType="centerInside"
|
||||
tools:ignore="ContentDescription" />
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/default_album_art" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/media_actions"
|
||||
|
|
@ -28,30 +29,30 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/widget_selector"
|
||||
android:background="@drawable/widget_selector_light"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_skip_previous_white_24dp"
|
||||
tools:tint="@color/ate_secondary_text_dark" />
|
||||
tools:tint="@color/ate_secondary_text_light" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_toggle_play_pause"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/widget_selector"
|
||||
android:background="@drawable/widget_selector_light"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_play_arrow_white_24dp"
|
||||
tools:tint="@color/ate_secondary_text_dark" />
|
||||
tools:tint="@color/ate_secondary_text_light" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_next"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/widget_selector"
|
||||
android:background="@drawable/widget_selector_light"
|
||||
tools:ignore="ContentDescription"
|
||||
tools:src="@drawable/ic_skip_next_white_24dp"
|
||||
tools:tint="@color/ate_secondary_text_dark" />
|
||||
tools:tint="@color/ate_secondary_text_light" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
@ -81,7 +82,7 @@
|
|||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
android:textColor="@color/ate_primary_text_dark"
|
||||
android:textColor="@color/ate_primary_text_light"
|
||||
tools:text="Title" />
|
||||
|
||||
<TextView
|
||||
|
|
@ -93,7 +94,7 @@
|
|||
android:paddingRight="4dp"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
android:textColor="@color/ate_secondary_text_dark"
|
||||
android:textColor="@color/ate_secondary_text_light"
|
||||
tools:ignore="HardcodedText"
|
||||
tools:text="•" />
|
||||
|
||||
|
|
@ -104,7 +105,7 @@
|
|||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
android:textColor="@color/ate_secondary_text_dark"
|
||||
android:textColor="@color/ate_secondary_text_light"
|
||||
tools:text="Text" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue