DiagonalDrawable

Additional

Language
Kotlin
Version
N/A
Created
Feb 26, 2018
Updated
Mar 5, 2018 (Retired)
Owner
Massive Disaster (massivedisaster)
Contributor
Jorge Costa (extmkv)
1
Activity
Badge
Generate
Download
Source code

DiagonalDrawable

A Diagonal Drawable for backgrounds, etc.

Download

Gradle:

dependencies {
  implementation 'com.massivedisaster.drawable:diagonaldrawable:0.1.0'
}

Usage

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

License

MIT LICENSE