4

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" />
Omar Shawky
  • 1,242
  • 1
  • 12
  • 25

2 Answers2

2

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

0

Check the Androidanifest.xml file in the Application section of the hardwareAccelerated setting:

android:hardwareaccelerated="true"
Vergiliy
  • 1,248
  • 1
  • 13
  • 22