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

Commit f4727d7

Browse files
committed
Removed double ripple effect on Android 6, using custom ripple for list items. But still click event to corner of any list item occurs on the center of item sometimes.
1 parent cb3802e commit f4727d7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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">
6+
<item>
7+
<shape
8+
android:shape="rectangle">
9+
<solid android:color="@android:color/transparent" />
10+
</shape>
11+
</item>
12+
</ripple>

material_preferences_library/src/main/res/layout/mpl__preference_activity.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<ListView
2626
android:id="@android:id/list"
2727
android:layout_width="match_parent"
28-
android:layout_height="match_parent"/>
28+
android:layout_height="match_parent"
29+
android:listSelector="@drawable/mpl__custom_ripple_effect_background"/>
2930

3031
<ImageView
3132
android:id="@+id/abp__shadowView"

0 commit comments

Comments
 (0)