clipTopCorners
fun AppCompatImageView.clipTopCorners(cornerFamily: Int, cornerRadius: Float)
Content copied to clipboard
Clip the top corners of a ImageView. Works with any CornerFamily. Replaces the current background drawable with a custom drawable with clipped corners. The previously set background color of the ImageView is automatically applied to the new background drawable.