Nicest highlight of selected row.

This commit is contained in:
Antoine POPINEAU 2020-06-22 18:05:25 +02:00
parent 3a88e02ca0
commit 08a7a28c22
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
8 changed files with 39 additions and 26 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<solid android:color="?android:colorPrimary" />
<corners android:radius="4dp" />
</shape>
<color android:color="@android:color/white" />
</item>
</ripple>

View File

@ -3,13 +3,12 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="5dp"
android:background="@drawable/ripple"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:padding="8dp"
android:transitionGroup="true"
tools:showIn="@layout/fragment_albums">

View File

@ -3,13 +3,12 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="5dp"
android:background="@drawable/ripple"
android:padding="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:transitionGroup="true"
tools:showIn="@layout/fragment_artists">

View File

@ -4,12 +4,11 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="5dp"
android:background="@drawable/ripple"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:padding="8dp"
android:transitionGroup="true"
tools:showIn="@layout/fragment_playlists">

View File

@ -3,13 +3,12 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="5dp"
android:background="@drawable/ripple"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:padding="8dp"
android:transitionGroup="true"
tools:showIn="@layout/fragment_radios">

View File

@ -3,13 +3,12 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="6dp"
android:background="@drawable/ripple"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:padding="8dp"
android:transitionGroup="true"
tools:showIn="@layout/fragment_tracks">
@ -42,8 +41,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/downloaded"
android:drawableTint="@color/controlColor"
android:drawablePadding="8dp"
android:drawableTint="@color/controlColor"
android:ellipsize="end"
android:lines="1"
tools:text="Absolution" />

View File

@ -19,4 +19,6 @@
<color name="downloaded">@color/controlColor</color>
<color name="cached">#aeaeae</color>
<color name="ripple">#283f4e</color>
</resources>

View File

@ -21,4 +21,6 @@
<color name="downloaded">@color/colorPrimary</color>
<color name="cached">#999999</color>
<color name="ripple">#c2def0</color>
</resources>