Android Design Support Library expandable Floating Action Button(FAB) menu

后端 未结 5 951
耶瑟儿~
耶瑟儿~ 2020-11-28 17:26

Now that the Android Design Support Library is out, does anyone knows how to implement expanded Fab menu with it, like the fab on Inbox App?

Should look like this:

5条回答
  •  猫巷女王i
    2020-11-28 17:52

    When I tried to create something simillar to inbox floating action button i thought about creating own custom component.

    It would be simple frame layout with fixed height (to contain expanded menu) containing FAB button and 3 more placed under the FAB. when you click on FAB you just simply animate other buttons to translate up from under the FAB.

    There are some libraries which do that (for example https://github.com/futuresimple/android-floating-action-button), but it's always more fun if you create it by yourself :)

提交回复
热议问题