Android L - Floating Action Button (FAB)

前端 未结 4 720
日久生厌
日久生厌 2020-12-22 21:46

Did Google already released a defined style or a component for this new circular FAB button or should I implement the design on my own?

The button is described here:

4条回答
  •  自闭症患者
    2020-12-22 22:25

    Since Labels FAB feature (like in Evernote or Inbox apps) was added to this awesome library feel free to use it:

    Gradle dependency:

        compile 'com.getbase:floatingactionbutton:1.3.0'
    

    Layout.xml:

         
    
            
    
            
    
        
    

    menu_labels_style.xml:

        
    

    fab_label_background.xml:

        
    
        
        
        
    
    

    Enjoy!

提交回复
热议问题