I'm having some trouble with ripple on FABs, a simple click does not trigger the ripple at all, whil...
z
I'm having some trouble with ripple on FABs, a simple click does not trigger the ripple at all, while a long press does. Is there a way to make the ripple show always, and possibly change the color as well?
👀 1
t
I’m having the same issue after upgrading to beta8
a
please file a bug
t
So it turns out that this issue is similar to the issue in this thread. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1622755203279600 A bug is already filed
l
Could you describe your issue?
z
using a plain
FloatingActionButton(onClick = { })
the ripple only appears if the button is pressed for a duration, but doesn't appear for taps, without holding it down
l
Nothing appears at all if you tap?
z
nope
the ripple is fine with tap+hold though
l
Does the tap trigger the onClick correctly?
z
yup
instant taps trigger the onclick action just fine
l
Is this on a real device or emulator?
z
real device, android 12
l
Hm, I can’t reproduce this exact issue, but it might be similar / the same as the other issue mentioned in the thread. You could try to reproduce with the latest build that has a fix for the other issue which might fix this too: https://ci.android.com/builds/pending/P23409680/androidx/latest/top-of-tree-m2repository-all-P23409680.zip Download and unzip this somewhere, then point to it inside your
allprojects
block like:
Copy code
allprojects {
    repositories {
        maven {
            url "/path/to/m2repository"
        }
    }
}
And then just change your build number to beta09 instead of beta08
z
this one seems to be working