A Diagonal Drawable for backgrounds, etc.
Gradle:
dependencies {
implementation 'com.massivedisaster.drawable:diagonaldrawable:0.1.0'
}
DiagonalDrawable(ContextCompat.getColor(context, R.color.left),
ContextCompat.getColor(context, R.color.right),
DiagonalDrawable.Orientation.LEFT_RIGHT)
Orientations available:
DiagonalDrawable.Orientation.LEFT_RIGHT
DiagonalDrawable.Orientation.RIGHT_LEFT