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
1
vote
2 answers

Why does my FloatingActionButton have ripple effect even in resting state?

I don't know why there is a ripple effect even in the resting state of my FAB(FloatingActionButton). This is how it looks: This is my implementation in xml:
Sid
  • 1,270
  • 2
  • 15
  • 30
1
vote
0 answers

How to add ripple effect to onClick?

drawable/ripple.xml
quki
  • 135
  • 1
  • 1
  • 11
1
vote
1 answer

Ripple effect weird behavior in ListView

I have implemented the ripple effect for each item inside the ListView by using element. I got the desired ripple effect when I touch (select) on each item in the ListView. But when I scroll the ListView and then select any item again the…
1
vote
2 answers

Material Design Ripple Event

For Android , I need to implement animated ripple effect when i touch on any element/view. How do i achieve it ?
code
  • 2,115
  • 1
  • 22
  • 46
1
vote
2 answers

Delay shared element transition to complete statelist animation

I've been trying out shared element transition on Lollipop. i have a recyclerview which loads some cards and one click the card expands to its details in the next activity. I have set a ripple effect and a StateListAnimator on the card. But those…
1
vote
0 answers

Android Ripple effect duration in XML

I have the following ripple xml defined:
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
0
votes
2 answers

How to apply ripple effect only to Buttons background, but not not content?

In XML the ripple effect is applied only to the background of a material button, whereas on Compose, it covers the entire button, also partially covering the text, when button is pressed. I want to match ripple implementation as it is on XML, so…
0
votes
0 answers

How to clip ListView items' ripple effect to the ListView's parent, when that parent has rounded corners?

I've created a PopupWindow with a rounded background, like this: val popupWindow = PopupWindow(requireContext()) val roundedBackground = ResourcesCompat.getDrawable(resources, R.drawable.popup_menu_background,…
0
votes
0 answers

How to add ripple animation in imageView?

I'm trying to show a ripple animation in imageView before loading the image from the server. I tried below code: ImageView imageView = findViewById(R.id.image_view); // Create a RippleDrawable with a solid color background and no…
0
votes
1 answer

Change a particular color of a tag in a range of tags in drawable asset

I created a drawable asset to use it as a button. The code is shown below round_button.xml
Goutham
  • 156
  • 13
0
votes
1 answer

How to make custom ripples like Square, Stare and other custom shapes in Swift 5?

I have facing issue to make ripples in Square and Stare figure like YRipple Please help me and suggestion always welcome.
Furkan
  • 306
  • 4
  • 17
0
votes
1 answer

Android FloatingActionButton Ripple Doesn't Work Properly

My problem is, when I press my FloatingActionButton the ripple appears on the border (almost can't see) not the center. This is my custom style: