How do I round the edges of the layout?

Asked 2 years ago, Updated 2 years ago, 75 views

I'm looking for a way to round the edges of the layout. I don't know what to do with my head.

image xml layout android

2022-09-21 21:05

1 Answers

Make xml in the drawable folder.

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#FFFFFF"/>
    <stroke android:width="3dip" android:color="#B1BCBE" />
    <corners android:radius="10dip"/>
    <padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>

rounded.xml

Apply properties to the layout you want to round.

android:background="@drawable/rounded"


2022-09-21 21:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.