How to Apply Corner Radius to LinearLayout

前端 未结 4 1874
傲寒
傲寒 2020-11-29 16:37

I want to make a layout with a rounded border. How can I apply a radius of a particular size in a LinearLayout?

4条回答
  •  迷失自我
    2020-11-29 16:59

    You would use a Shape Drawable as the layout's background and set its cornerRadius. Check this blog for a detailed tutorial

提交回复
热议问题