From 1b3c19f8dacef479033d6989780980640e1f5ce5 Mon Sep 17 00:00:00 2001 From: Csaba Szugyiczki Date: Mon, 4 May 2020 21:23:41 +0200 Subject: [PATCH] Add custom ripple effect --- .../res/drawable/background_item_pokemon.xml | 26 +++++++++++++------ app/src/main/res/layout/item_generation.xml | 2 -- app/src/main/res/layout/item_menu.xml | 5 ++-- app/src/main/res/layout/item_pokemon.xml | 5 ++-- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/app/src/main/res/drawable/background_item_pokemon.xml b/app/src/main/res/drawable/background_item_pokemon.xml index 95091c3..3aa4052 100644 --- a/app/src/main/res/drawable/background_item_pokemon.xml +++ b/app/src/main/res/drawable/background_item_pokemon.xml @@ -1,9 +1,19 @@ - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_generation.xml b/app/src/main/res/layout/item_generation.xml index 2c2dba8..f8929ef 100644 --- a/app/src/main/res/layout/item_generation.xml +++ b/app/src/main/res/layout/item_generation.xml @@ -11,8 +11,6 @@ android:clipToPadding="false" android:elevation="8dp" android:focusable="true" - android:foreground="?android:attr/selectableItemBackground" - android:orientation="vertical" android:padding="8dp"> + android:padding="8dp" + tools:backgroundTint="@color/lightTeal"> + android:padding="8dp" + tools:backgroundTint="@color/lightTeal">