FloatingActionButtonSpeedDial icon indicating copy to clipboard operation
FloatingActionButtonSpeedDial copied to clipboard

FAB shadow is rendered wrongly on API 15

Open akwizgran opened this issue 6 years ago • 5 comments

On the Sony Xperia Tipo (API 15) the shadow behind the FAB isn't properly aligned with the button - a white line is visible between the button and its shadow at the bottom left and right corners.

akwizgran avatar Sep 27 '18 09:09 akwizgran

device-2018-09-27-103254.png

akwizgran avatar Sep 27 '18 09:09 akwizgran

This is a bug of the FloatingActionButton from the Design library. I have open an issue, feel free to star it: https://issuetracker.google.com/issues/77303906

Related to #11

leinardi avatar Sep 27 '18 10:09 leinardi

We have another FAB in the app where this doesn't seem to happen. Any thoughts about what might be different between the two FABs?

device-2018-09-27-131342

akwizgran avatar Sep 27 '18 12:09 akwizgran

Yep, just try to change the size of the FAB programmatically (define it mini in XML and than set it to normal in Java/Kotlin:

 // fab has app:fabSize attribute set to "mini"
 FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab2);
 fab.setSize(FloatingActionButton.SIZE_NORMAL);

leinardi avatar Sep 28 '18 07:09 leinardi

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

stale[bot] avatar Nov 27 '18 07:11 stale[bot]