black edges on shapeable imageview after corner round

Viewed 773

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

Here is my 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" />
1 Answers

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

Related