Questions tagged [rippledrawable]

Using RippleDrawable, users will no longer have a button (for example) that simply changes colors when pressed; instead, that button will respond with ripples and waves when users interact with it.

Using RippleDrawable, users will no longer have a button (for example) that simply changes colors when pressed; instead, that button will respond with ripples and waves when users interact with it.

The design principle is shown at https://material.io/design/motion/.

184 questions
11
votes
1 answer

How to add ripple effect to preferences in android?

I am working on adding ripple effect when the preference is touched (selected). I have customized my preference by extending the ListPreference. I have tried to set the ripple effect programmatically by using RippleDrawable but I don't see the…
Prudhvi
  • 2,276
  • 7
  • 34
  • 54
11
votes
3 answers

Ripple effect on Spinner dropdown items colored background (appcompat-v7 V21)

I tried to apply ripple effect on Spinner dropdown items, like this: activity.java ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.array_name, R.layout.simple_spinner_dropdown_item); …
11
votes
1 answer

Ripples not showing with selectableItemBackground as foreground on a CardView with a Android 5.0 device

I'm running this on a Nexus 5. Here's part of the code for my CardView: CardView cardView = new CardView(getActivity()); cardView.setRadius(4); LinearLayout.LayoutParams lp = new…
10
votes
3 answers

Android action bar options menu item custom selectable background

I'm trying to use the default android action bar with a custom view: