Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.31 KB

README.md

File metadata and controls

22 lines (13 loc) · 1.31 KB

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.