gowong / material-sheet-fab

Android library that provides the floating action button to sheet transition from Google's Material Design.
MIT License
1.58k stars 255 forks source link

Fab is located in a wrong spot on < 5.0 devices #25

Closed hatpick closed 8 years ago

hatpick commented 8 years ago

I have followed your sample code and created my own view, but the fab is located in a wrong place. With the "show layout bounds" enabled in debugging mode, I can see that the fab has some padding on < 5.0 devices. Any idea what might causing the issue?

screen shot 2016-03-14 at 5 47 32 pm screen shot 2016-03-14 at 5 48 01 pm
gowong commented 8 years ago

Can you post a screenshot?

hatpick commented 8 years ago

I've attached the screenshots, you can see that there is some padding around the Fab.

gowong commented 8 years ago

Ah I see, this is an issue in the Android Design Support library where the spacing isn't consistent across Android versions. The example app actually accounts for this. If you look at the styles - there are separate padding values based on the platform.