Is there a way to add ripple effect to Listview items in the android support library since ripple tag only works with API level 21+.
Asked
Active
Viewed 2,253 times
3
-
Check out : http://stackoverflow.com/questions/26604134/how-to-achieve-ripple-animation-using-support-library-in-android – Haresh Chhelana Jul 04 '15 at 05:42
1 Answers
2
No. You cannot add ripple effect to ListView items using android support library since the support library only supports Lollipop features like FAB, SnackBar, AppBarLayout, FloatingEditText, CoordinatorLayout, CollapsingToolbarLayout, TabLayout, NavigationView. If you need to create custom ripple effect for listitem in ListView follow this tutorial. It has a very good sample creating RippleEffect by extending RelativeLayout, so that you can assign this view as a parent layout in a listitem.
Chandru
- 5,954
- 11
- 45
- 85