Popularity
2.9
Stable
Activity
4.5
Stable
136
7
22

Description

a zigzag view for using for ticket or invoice

Programming language: Kotlin
License: Apache License 2.0
Tags: UI Widget     Layout Widget     Layout     Views     Custom View     Android-library     Card    
Latest version: v1.2.0

ZigzagView alternatives and similar packages

Based on the "Layout Widget" category.
Alternatively, view ZigzagView alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ZigzagView or a related project?

Add another 'Layout Widget' Package

README

ZigzagView

License API Android Arsenal

a zigzag view for using for ticket or invoice

Setup

Step #1. Add the JitPack repository to root build.gradle file:
allprojects {
    repositories {
    ...
    maven { url "https://jitpack.io" }
    }
}
Step #2. Add the dependency
dependencies {
    implementation 'com.github.beigirad:ZigzagView:VERSION'

}

Implementation

<ir.beigirad.zigzagview.ZigzagView
    android:layout_width="match_parent"
    android:layout_height="240dp"
    app:zigzagBackgroundColor="#8bc34a"
    app:zigzagElevation="8dp"
    app:zigzagHeight="10dp"
    app:zigzagShadowAlpha="0.9"
    app:zigzagSides="top|bottom"
    app:zigzagPaddingContent="16dp">

    // add child view(s)

</ir.beigirad.zigzagview.ZigzagView>

Attributes

Attribute Type Default Value Description
zigzagHeight dimension 0dp height of zigzag jags
zigzagElevation dimension 0dp side of shadow
zigzagBackgroundColor color Color.WHITE background color
zigzagPaddingContent dimension 0dp content padding
zigzagPadding dimension 0dp view padding
zigzagPaddingLeft dimension zigzagPadding left side view padding
zigzagPaddingRight dimension zigzagPadding right side view padding
zigzagPaddingBottom dimension zigzagPadding bottom side view padding
zigzagPaddingTop dimension zigzagPadding top side view padding
zigzagSides enum bottom choosing zigzag sides
zigzagShadowAlpha float [0,1.0] 0.5 amount of shadow transparency

Thanks

Reza Kardoost for helping me out with ZigzagView Shadow/Elevation.

License

Copyright 2018 Farhad Beigirad

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.


*Note that all licence references and agreements mentioned in the ZigzagView README section above are relevant to that project's source code only.