How can I make my button look more like the Floating Action Button from Android JellyBean (v21)?

前端 未结 3 1636
情歌与酒
情歌与酒 2021-02-10 19:25

How do I make my button look more like the Floating Action Button?

My button so far looks close but as yet, doesn\'t look the same. What other changes would you suggest?

3条回答
  •  悲哀的现实
    2021-02-10 19:45

    I have been using the following library for my app (I'm not the author). It seems to work very well, looks just like a FAB and even can be easily attached to a listview to autohide when you scroll down. The library is easy to add through gradle too. The image/animation on the github page makes the button look low quality but it isn't in real life and looks exactly like the google versions.

    https://github.com/makovkastar/FloatingActionButton

提交回复
热议问题