The Kotlin class for creating View with diagonal line in bottom side
Use this:
<my.app.ui.components.YDiagonalView
android:id="@+id/yDiagonalView"
android:layout_width="match_parent"
android:layout_height="200dp"
app:heightDiagonal="40dp"/>