Skip to content

jeffreyliu8/Zebra-View

Repository files navigation

Zebra-View

License Release

A simple library view for showing 45 degree tilted strips.

Customization

The 2 colors and width.

Todo

Angles, number of strips,

Using ZebraView

Setup

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
Dependencies
	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" />

Output sample

Requirements

Requires a minimum SDK version of 14