You should add following to CardView
:
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
More Related Contents:
- CardView layout_width=”match_parent” does not match parent RecyclerView width
- Android-L CardView Visual Touch Feedback
- Cardview shadow not appearing in lollipop devices?
- RecyclerView inside ScrollView is not working
- How can I change default dialog button text color in android 5
- Error inflating class and android.support.v7.widget.CardView
- How can I align Android Toolbar menu/icons to the left like in Google Maps app?
- CardView not showing Shadow in Android L
- application content goes behind the navigation bar in android L
- Using android.support.v7.widget.CardView in my project (Eclipse)
- OnClickListener for CardView?
- How can I modify ripple color when using ?attr/selectableItemBackground as background?
- Change the background color of CardView programmatically
- How to use setOutlineProvider instead of setOutline in Lollipop
- What does android:layout_weight mean?
- Exception ‘open failed: EACCES (Permission denied)’ on Android
- How to display count of notifications in app launcher icon [duplicate]
- Getting View’s coordinates relative to the root layout
- How to _really_ programmatically change primary and accent color in Android Lollipop?
- Adding Table rows Dynamically in Android
- What is the role of content_main.xml in android studio 1.4?
- How to use RadioGroup in ListView custom adapter?
- android:windowSoftInputMode=”adjustResize” doesn’t make any difference?
- Android – Inner element must either be a resource reference or empty
- Android: Radio button in custom list view
- Android layouts for different screen sizes
- Something’s wrong in Corner radius Android
- Android SlidingTabLayout with icons
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?
- What event is fired after all views are fully drawn?