-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grey square shown on focused FAB on API 22 #169
Comments
Yes, I, too, find this feature not quite right. We had to use 3.1.1 for our project because it fits better. |
The only way I found to solve the issue was setting viewBinding.speedDial.mainFab.rippleColor = Color.TRANSPARENT
viewBinding.speedDial.addActionItem(
SpeedDialActionItem.Builder(R.id.fab_sd_commands, R.drawable.commands)
.setFabBackgroundColor(ContextCompat.getColor(this, R.color.white))
.setLabel(R.string.commands).create()
)?.fab?.rippleColor = Color.TRANSPARENT @leinardi Is that the best way to solve this? Do you know if maybe this is a bug related to Material's Library FAB? |
@fernandomantoan I'm not aware of any other solution. The bug seems to happen only on API 31+. It seems definitely an upstream bug, most probably on |
Ok, thank you anyway. Regards. |
I'm opening an issue on the material component library, I can reproduce the issue with just this simple layout:
|
I have opened an issue upstream, please consider giving it a 👍 for visibility: |
After seeing your snippet I noticed that this attribute is causing the issue: There is an issue opened for this here: https://issuetracker.google.com/issues/37088292 with the status |
Doesn't seem related since is not involving |
I don't know but after removing |
Are you really sure you don't have the issue? I can still reproduce it without the
Repro branch available here: https://github.com/leinardi/FloatingActionButtonSpeedDial/tree/issue-2617 |
Step 1: Are you in the right place?
Step 2: Describe your environment
3.2.0
5.1.1
1.3.0
(androidx appcompat)Nexus 6 Emulator
(tried on one other device)Nexus 6 Emulator
Step 3: Describe the problem:
Steps to reproduce:
Open speed dial in basic app on API 22
Observed Results:
A grey square is visible overlaid on top of the first fab menu item (and on the main fab when opening, and any fab when focused or tapped)
Expected Results:
Look the same as e.g. API 23, with no squares
Relevant Code:
As a side note, I noticed this while trying to debug why the first FAB item was focused after updating to 3.2.0 before realizing that this was intentional: #149
I understand the value of having the first button focused, but the difference in color looks inconsistent. Is it possible to turn off the color change for the focus state? I don't see an easy way to manually specify the selector.
API 22:
API 23:
The text was updated successfully, but these errors were encountered: