How can I add the new “Floating Action Button” between two widgets/layouts

前端 未结 10 2333
离开以前
离开以前 2020-11-22 10:31

I guess you have seen the new Android design guidelines, with the new \"Floating Action Button\" a.k.a \"FAB\"

For instance this pink button:

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 10:42

    You can import the sample project of Google in Android Studio by clicking File > Import Sample...

    Import sample

    This Sample contains a FloatingActionButton View which inherits from FrameLayout.

    Edit With the new Support Design Library you can implement it like in this example: https://github.com/chrisbanes/cheesesquare

提交回复
热议问题