We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1acfaf9 commit a347b12Copy full SHA for a347b12
app/src/main/res/drawable/clickable.xml
@@ -0,0 +1,3 @@
1
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <item android:drawable="@color/pressed_color" android:state_pressed="true" />
3
+</selector>
app/src/main/res/layout/list_item_search_result.xml
@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
4
android:layout_height="match_parent"
5
+ android:background="@drawable/clickable"
6
android:padding="@dimen/spacing_large"
7
android:orientation="horizontal">
8
app/src/main/res/values/colors.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="pressed_color">#66dddddd</color>
+</resources>
0 commit comments