The issue is that you need to return a Drawable instead of a RippleDrawable in getPressedColorRippleDrawable
. Otherwise, on pre-lollipop devices, you will get a VerifyError.
More Related Contents:
- Add ripple effect to my button with button background color?
- Android L’s Ripple Effect – Touch Feedback for Buttons – Using XML
- how to create ripple effect for pre-lollipop
- How to create ripple effect in simple layout
- How do I get the height and width of the Android Navigation Bar programmatically?
- How to make an android app return to the last open activity when relaunched?
- Android Canvas: drawing too large bitmap
- Setting global styles for Views in Android
- Best place to close database connection
- Android – LinearLayout Horizontal with wrapping children
- How to fix “unexpected element found in ” error?
- Intent URI to launch Gmail App
- Is there a way to detect when the user has changed the clock time on their device?
- Mobile Vision API – concatenate new detector object to continue frame processing
- Android recyclerView findViewHolderForAdapterPosition returns null
- Menu Items are not showing on Action Bar
- How to do something after user clicks on my EditText
- How to make zoomable LinearLayout? [closed]
- scale fit mobile web content using viewport meta tag
- Practical way to find out if SMS has been sent
- Pass 2D array to another Activity
- Put an indeterminate progressbar as footer in a RecyclerView grid
- How to repeat notification daily on specific time in android through background service
- How to pass result from second fragment to first fragment
- Is it possible to make a horizontal NumberPicker?
- How to make a file hidden in android sd card?
- image attachment to a mail.. how in android?
- Is there a method that works like start fragment for result?
- Android 10: IMEI no longer available on API 29. Looking for alternatives
- Is there any way to have WebView auto-link URLs and phone numbers in Android?