如何使用Picasso或Glide在imageview边框周围制作远程图像剪辑

问题描述

我正在使用毕加索将图像加载到imageview中。我希望能够获得下图。

Image clips around image view bother

使用可绘制图像可以显示以上图像。当我使用毕加索时,下面的图像是我得到的。

Remote image not clipping around imageview bother

## ImageView

    <ImageView
        android:id="@+id/resource_article_publications_iv"
        android:layout_width="@dimen/_150sdp"
        android:layout_height="@dimen/_250sdp"
        android:background="@drawable/top_left_bottom_right_rounded_corners"
        android:scaleType="centerCrop"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"/>

##可绘制背景

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="#000000" />
    <corners
        android:radius="@dimen/_10sdp"
        android:bottomrighTradius="30dp"
        android:topLefTradius="30dp" />

</shape>

如何通过远程图像获得图像1。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)