Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

Floating Action Menu always opens upwards #439

Closed PogopunkXIII closed 6 years ago

PogopunkXIII commented 6 years ago

I took the downward Floating Action Menu form the sample and dropped it in my project and can't seem to get it to expand downwards, no matter what I do it it always expands upwards.

In the layout design page it displays the FAM as if it's going to expand downwards, but when running on the emulator the FAM button moves down to the middle of the screen and when pressed the FABs expand up.

I definitely have the fab:menu_openDirection="down"

codeForge13 commented 6 years ago

can you show the xml?

Golden-Slumber commented 6 years ago

try this: xmlns:fab="http://schemas.android.com/apk/res-auto"

PogopunkXIII commented 6 years ago

https://github.com/PogopunkXIII/GHCharacterTracker/blob/uiUpdate/app/src/main/res/layout/character_sheet_2.xml#L9

This is a link to where I'm trying to use the floating Action Menu

Golden-Slumber commented 6 years ago

I have met the same problem before. just change xmlns:fab="http://schemas.android.com/tools" to xmlns:fab="http://schemas.android.com/apk/res-auto"

PogopunkXIII commented 6 years ago

@Golden-Slumber You're the man. That worked perfectly! Thanks.