How to change FAB background color

后端 未结 4 1108
清歌不尽
清歌不尽 2021-01-07 17:23

I am using Floating Action Button and I want to change the background color.

Here is my code

    

        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-07 17:32

    First create a style in your styles.xml:

    
    

    Then set the theme of your fab to this style:

    
    

    You can see full descrption in: Android: Floating Action button

提交回复
热议问题