I want to make a layout with a rounded border. How can I apply a radius of a particular size in a LinearLayout?
I want to make a layout with a rounded border. How can I apply
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create an XML file in the drawable folder. Call it, for example,
shape.xmlIn
shape.xml:The
<corner>tag is for your specific question.Make changes as required.
And in your
whatever_layout_name.xml:This is what I usually do in my apps.