How to make layout with rounded corners..?

后端 未结 18 2897
独厮守ぢ
独厮守ぢ 2020-11-22 09:37

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

18条回答
  •  孤街浪徒
    2020-11-22 10:14

    1: Define layout_bg.xml in drawables:

    
    
        
        
        
        
    
    

    2: Add layout_bg.xml as background to your layout

    android:background="@drawable/layout_bg"
    

提交回复
热议问题