Android Floating Action Button API 19 (KitKat)

前端 未结 2 1823
庸人自扰
庸人自扰 2020-12-15 05:08

I need to implement a floating action button, according to Google Design Guidelines, on my android application with API level 19.

However, I would know if some nativ

2条回答
  •  时光说笑
    2020-12-15 06:15

    Recently Google has released a new support library based on Material Design Guideline. The Codepath details the same components in this post.

    The library can be already used with Gradle adding the following line in build.gradle:

    dependencies {
        ...
        compile 'com.android.support:design:25.3.1'
    }
    

    This is a simple example of usage:

    
    

    See more FloatingActionButton example with Support Library.

提交回复
热议问题