* 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
98 lines
No EOL
3.6 KiB
XML
98 lines
No EOL
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/black">
|
|
|
|
<ImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/default_album_art" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_actions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/shadow_up_strong"
|
|
android:layoutDirection="ltr"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_prev"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/widget_selector_dark"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/ic_skip_previous_white_24dp"
|
|
tools:tint="@color/ate_primary_text_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_toggle_play_pause"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/widget_selector_dark"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/ic_play_arrow_white_24dp"
|
|
tools:tint="@color/ate_primary_text_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_next"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/widget_selector_dark"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/ic_skip_next_white_24dp"
|
|
tools:tint="@color/ate_primary_text_dark" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/clickable_area"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@id/media_actions"
|
|
android:layout_alignParentTop="true" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_titles"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@drawable/shadow_down_strong"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
|
android:textColor="@color/ate_primary_text_dark"
|
|
tools:text="Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
|
android:textColor="@color/ate_secondary_text_dark"
|
|
tools:text="Text" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout> |