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

前端 未结 10 2332
离开以前
离开以前 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:58

    Try this library (javadoc is here), min API level is 7:

    dependencies {
        compile 'com.shamanland:fab:0.0.8'
    }
    

    It provides single widget with ability to customize it via Theme, xml or java-code.

    light between

    It's very simple to use. There are available normal and mini implementation according to Promoted Actions pattern.

    
    

    Try to compile the demo app. There is exhaustive example: light and dark themes, using with ListView, align between two Views.

提交回复
热议问题