How to create a floating action button (FAB) in android, using AppCompat v21?

前端 未结 7 986
眼角桃花
眼角桃花 2020-11-30 18:03

I would like to create a floating action button (to add items to a listview), like google calendar, maintaining compatibility with pre-lollipop Android versions (before 5.0)

7条回答
  •  暖寄归人
    2020-11-30 18:43

    Try this library, it supports shadow, there is minSdkVersion=7 and also supports android:elevation attribute for API-21 implicitly.

    Original post is here.

提交回复
热议问题