圆角后可塑图像视图上的黑边 [英] black edges on shapeable imageview after corner round

查看:37
本文介绍了圆角后可塑图像视图上的黑边的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的可塑形图像视图上圆角边缘后,圆角边缘周围仍然有黑色边缘

After rounding the edges on my shapeable image view, I still get black edges around the rounded edges

这是我的 xml:

<com.google.android.material.imageview.ShapeableImageView
    android:id="@+id/shapeableImageView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/background"
    android:scaleType="fitXY"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:shapeAppearance="@style/article_shape" />

推荐答案

app:shapeAppearanceOverlay="@style/article_shape"实际工作.当您在模拟器或设备上运行时,黑色边缘不会反映出来.谢谢

app:shapeAppearanceOverlay="@style/article_shape" actually worked. The black edges will not reflect when you run on an emulator or a device. Thanks

这篇关于圆角后可塑图像视图上的黑边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆