How to integrate a floating action button into linear layout with toolbar

前端 未结 3 997
我在风中等你
我在风中等你 2021-02-07 01:01

I have the following list view to which I want to add a floating action button.




        
3条回答
  •  北海茫月
    2021-02-07 01:45

    you need to use android.support.design.widget.CoordinatorLayout as your root layout instead of LinearLayout then only android.support.design.widget.FloatingActionButton will work

    
    
    // your code
    
    
    

提交回复
热议问题