Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 6d43215

Browse files
committed
Pre-lollipop compatible issue fixed
1 parent f4727d7 commit 6d43215

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<ripple
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:color="#a5a5a5">
4+
<item>
5+
<shape
6+
android:shape="rectangle">
7+
<solid android:color="@android:color/transparent" />
8+
</shape>
9+
</item>
10+
</ripple>
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
<ripple
2-
xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
android:color="#a5a5a5"
5-
tools:targetApi="lollipop">
1+
<selector
2+
xmlns:android="http://schemas.android.com/apk/res/android">
63
<item>
74
<shape
85
android:shape="rectangle">
96
<solid android:color="@android:color/transparent" />
107
</shape>
118
</item>
12-
</ripple>
9+
<item android:state_pressed="true">
10+
<shape
11+
android:shape="rectangle">
12+
<solid android:color="@android:color/transparent" />
13+
</shape>
14+
</item>
15+
<item android:state_focused="true">
16+
<shape
17+
android:shape="rectangle">
18+
<solid android:color="@android:color/transparent" />
19+
</shape>
20+
</item>
21+
</selector>

0 commit comments

Comments
 (0)