Skip to content

A Floating Action Button's Menu which attaches to any View!

Notifications You must be signed in to change notification settings

mdgspace/attachable-floating-menu

Repository files navigation

AttachableFloatingMenu

AttachableFloatingMenu (AFM) is an Android Library written in Kotlin that provides you with a Floating Action Button (FAB) which when triggered opens up a Menu. The menu itself comprises of other FABs. The AFM attaches itself to an Android View and only appears when that View is long pressed. The AFM renders more FABs around itself in a circular fashion. The user then slides the finger near the desired FAB to select that option. It is majorly inspired from Pinterest's menu.

Sample Image

TODOs

  • Make AFM compatible with a recycler view. Currently, when AFM is triggered, then any attempt to move the finger across the screen triggers scrolling in the recycler view in the background.
  • Handle boundary cases when rendering AFM. For example, the Menu should not go out of the screen when triggered near edges or corners.
  • Think of more types of animations (see this for examples) and implement them.

About

A Floating Action Button's Menu which attaches to any View!

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published