Browse Source

Nicest highlight of selected row.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
08a7a28c22
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 14
      app/src/main/res/drawable/ripple.xml
  2. 9
      app/src/main/res/layout/row_album.xml
  3. 9
      app/src/main/res/layout/row_artist.xml
  4. 9
      app/src/main/res/layout/row_playlist.xml
  5. 9
      app/src/main/res/layout/row_radio.xml
  6. 11
      app/src/main/res/layout/row_track.xml
  7. 2
      app/src/main/res/values-night/colors.xml
  8. 2
      app/src/main/res/values/colors.xml

14
app/src/main/res/drawable/ripple.xml

@ -0,0 +1,14 @@ @@ -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>

9
app/src/main/res/layout/row_album.xml

@ -3,13 +3,12 @@ @@ -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">

9
app/src/main/res/layout/row_artist.xml

@ -3,13 +3,12 @@ @@ -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">

9
app/src/main/res/layout/row_playlist.xml

@ -4,12 +4,11 @@ @@ -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">

9
app/src/main/res/layout/row_radio.xml

@ -3,13 +3,12 @@ @@ -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">

11
app/src/main/res/layout/row_track.xml

@ -3,13 +3,12 @@ @@ -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 @@ @@ -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" />

2
app/src/main/res/values-night/colors.xml

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

2
app/src/main/res/values/colors.xml

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

Loading…
Cancel
Save