How to make layout with rounded corners..?

后端 未结 18 3251
独厮守ぢ
独厮守ぢ 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:23

    Create your xml in drawable, layout_background.xml

     
        
          
          
                
        
     <--width, color, radius should be as per your requirement-->
    

    and then, add this in your layout.xml

     android:background="@drawable/layout_background"
    

提交回复
热议问题