Android设置上圆角和下圆角
圆角背景多用于卡片等布局
1.正常的圆角
代码如下:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 圆角半径 -->
<corners android:radius=“4dip" />
<!-- 矩形的边线 -->
<stroke
android:width