It's simple, but it's a record. It's a different trip.
Create a layout file under the drawable file Corners_bg.xml
- <?xml version="1.0" encoding="Utf-8"?>
- <shape xmlns:android=" http://schemas.android.com/apk/res/android " >
- <solid android:color=" #000000 " />//Fillet view background color
- <corners android:topleftradius=" 10DP " //left corner
- Android:toprightradius=" 10DP " //upper right rounded
- android:bottomrightradius=" 10DP "
- android:bottomleftradius=" 10DP "/>
- </shape>
generally, four rounded corners are the same, can be simply written as:
- <?xml version=" 1.0 " encoding=" Utf-8 "? >
- <shape xmlns:android=" http://schemas.android.com/apk/res/android " >
- <solid android:color=" #000000 " />
- <corners android:radius="5DP"/>
- </shape>
The call is simple and only needs to be in the view with rounded corners:
- android:background="@drawable/corners_bg"
Android Settings View Fillet