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
Jeffrey Liu - [email protected]
Copyright 2018 Jeffrey Liu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.