From 96656689e45667ff6eaa248dc71e469060e0f6f6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jul 2016 21:17:01 +0200 Subject: [PATCH] wrap every list item into a frame layout - to make sure the Selector foreground works on every Android version --- app/src/main/res/layout/list_item.xml | 71 ++++++++++++++------------- 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml index 63b9c407..0e4ccaac 100644 --- a/app/src/main/res/layout/list_item.xml +++ b/app/src/main/res/layout/list_item.xml @@ -1,41 +1,46 @@ - + android:layout_height="match_parent" + android:foreground="@drawable/selector"> - - - + android:paddingRight="@dimen/activity_margin"> - + - + + + + + +