实现“ de.hdodenhof:circleimageview:3.0.1”未显示圆形边框

我正在使用此库 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>

这就是我得到的结果

image

这些是我完整代码的图像

Module.app XML

yxgwl 回答:实现“ de.hdodenhof:circleimageview:3.0.1”未显示圆形边框

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3131499.html

大家都在问