markormesher / android-fab

Floating action button (FAB) for Android with speed-dial menu functionality
Apache License 2.0
211 stars 29 forks source link

Scrollable speed-dial menu #49

Open rolenin opened 5 years ago

rolenin commented 5 years ago

Is there a way to make speed-dial menu scrollable? If there are too many items, they go out of the screen.

markormesher commented 5 years ago

Hey @rolenin. Scrolling the speed-dial menu isn't currently possible in the library, but I suppose it could be added.

Can I ask how many items you're trying to show? According to the material design guidelines for FABs, the speed-dial menu should contain "no more than six options". Obviously these are guidelines not absolute rules, but they're worth keeping in mind. How many items are you able to fit before they flow off the screen?

rolenin commented 5 years ago

Mark, thanks for your reply. I am going to ship my app with only two predefined values, however I'd like to make users able to add as many items as they want. So it's up to them how many items the fab is going to have. I guess even breaking some design rules, the scrollable menu might look nicely and be really handy.

markormesher commented 5 years ago

Seems like a pretty good use case for a scrollable menu to me 🙂

I'll see if I can get to it next week, but I can't promise anything. Feel free to open up a PR if you want to take a shot it it yourself.

rolenin commented 5 years ago

Ok, sure, thanks ) I am not expierenced enough in programming to open up PRs but it's a good opportunity for me to have a look what I can do )