Skip to content

Instantly share code, notes, and snippets.

View ALXKAY's full-sized avatar
👀

ALXKAY

👀
View GitHub Profile
@ALXKAY
ALXKAY / README.md
Last active March 6, 2025 19:45
[MaterialCardView/ShapeableImageView] Stroke not correctly overlapping corners [Workaround]

This is not an ideal solution, but it may be useful to someone.

Tested on: com.google.android.material:material:1.4.0-rc01

Layout Result
ImageView inside the MaterialCardView (with 1dp stroke and 16dp corners) image
ShapeableImageView (with 1dp stroke and 16dp corners) image
ShapeableImageView (with 2dp (1dp + additional 1dp) stroke and 16dp corners) inside the MaterialCardView (with 16dp corners) image [this Gist]