我正在使用此库
https://github.com/hdodenhof/CircleImageView中的implementation 'de.hdodenhof:circleimageview:3.0.1
,我想显示圆形图像视图,但不显示圆形边框
在我放置的module.app中。
implementation 'de.hdodenhof:circleimageview:3.0.1
这是我的XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Settingsactivity">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profile_image"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:src="@drawable/profile_image"
app:civ_border_width="5dp"
app:civ_border_color="@color/colorPrimary"/>
</RelativeLayout>
这就是我得到的结果
这些是我完整代码的图像