我正在制作一个应用程序,我想通过其角来圆化我的ImageView。但它没有从角落处变圆,我已经使用了以下代码:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="8dp"
android:shape="rectangle" >
<solid android:color="#6BC1F8" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
</shape>
用于圆角化图片,但我得到的结果像这样:
我想做出下面这样:
我不确定我哪里做错了,请指导我:)