A simple library view for showing 45 degree tilted strips.
The 2 colors and width.
Angles, number of strips,
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.jeffreyliu8:Zebra-View:v0.0.5'
}
A quick example is shown below:
<com.askjeffreyliu.zebraview.ZebraView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:barWidth="36dp"
app:color1="@color/colorAccent"
app:color2="@color/colorPrimaryDark"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Requires a minimum SDK version of 14