From 3d58b780628733d78f4867055fe77eb7f7530f50 Mon Sep 17 00:00:00 2001 From: Soitora Date: Tue, 8 Jun 2021 04:40:48 +0200 Subject: [PATCH] Add ripple to history items (#5341) - Replaces margin with padding. - Adds the drawable ripple background. - Changes height to match the padding so it doesn't look odd. --- app/src/main/res/layout/history_item.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/history_item.xml b/app/src/main/res/layout/history_item.xml index dd97d7dd0f..8956561ce7 100644 --- a/app/src/main/res/layout/history_item.xml +++ b/app/src/main/res/layout/history_item.xml @@ -4,11 +4,12 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/holder" android:layout_width="match_parent" - android:layout_height="80dp" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="8dp" - android:layout_marginBottom="8dp" + android:layout_height="96dp" + android:paddingStart="16dp" + android:paddingTop="8dp" + android:paddingEnd="8dp" + android:paddingBottom="8dp" + android:background="@drawable/selectable_item_background" android:orientation="horizontal">