左上,左下,右上,右下
四个角分别设置弧度即可
drawable/dialog_qrcode_button.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="@color/main_color" /> <corners android:bottomLeftRadius="0dp" android:bottomRightRadius="0dp" android:topLeftRadius="5dp" android:topRightRadius="5dp" /> </shape>
android:background="@drawable/dialog_qrcode_button"
时间: 2024-11-14 19:12:07