All Projects → beigirad → Zigzagview

beigirad / Zigzagview

Licence: apache-2.0
a zigzag view for using for ticket or invoice

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Zigzagview

Electron Vue Cloud Music
🚀Electron + Vue 仿网易云音乐windows客户端
Stars: ✭ 1,894 (+1465.29%)
Mutual labels:  canvas
Yunban
fullstack movie & music proj(rebuilding)
Stars: ✭ 116 (-4.13%)
Mutual labels:  canvas
Freeciv Web
Freeciv-web is an Open Source strategy game implemented in HTML5 and WebGL, which can be played online against other players, or in single player mode against AI opponents.
Stars: ✭ 1,626 (+1243.8%)
Mutual labels:  canvas
Canvas Raycaster
Using the <canvas> element to do software rendering of a 3D environment with ray-casting
Stars: ✭ 112 (-7.44%)
Mutual labels:  canvas
Canvas
Peer-to-peer canvas app for Urbit
Stars: ✭ 114 (-5.79%)
Mutual labels:  canvas
Canvas Webgl Study
this is a canvas study project
Stars: ✭ 117 (-3.31%)
Mutual labels:  canvas
Capture Frame
Capture video screenshot from a `<video>` tag (at the current time)
Stars: ✭ 109 (-9.92%)
Mutual labels:  canvas
Neumorphismview Android
A Neumorphism library for Android, supporting customizations for shadows/highlights to selected child views.
Stars: ✭ 121 (+0%)
Mutual labels:  customview
Vue Thanos Snap
thanos snap animation by vue
Stars: ✭ 115 (-4.96%)
Mutual labels:  canvas
Laravel Invoicable
Easy invoice creation for Laravel
Stars: ✭ 118 (-2.48%)
Mutual labels:  invoice
Knowledge
文档着重构建一个完整的「前端技术架构图谱」,方便 F2E(Front End Engineering又称FEE、F2E) 学习与进阶。
Stars: ✭ 1,620 (+1238.84%)
Mutual labels:  canvas
Canvas Confetti
🎉 on-demand confetti gun
Stars: ✭ 2,394 (+1878.51%)
Mutual labels:  canvas
Canvas2video
Convert dynamic canvas to video, support merge audio
Stars: ✭ 117 (-3.31%)
Mutual labels:  canvas
Skqw
JavaScript Audio Visualizer
Stars: ✭ 112 (-7.44%)
Mutual labels:  canvas
Waveformseekbar
Android Waveform SeekBar library
Stars: ✭ 120 (-0.83%)
Mutual labels:  customview
Schart.js
📊 Small & simple HTML5 charts
Stars: ✭ 110 (-9.09%)
Mutual labels:  canvas
Easy Canvas
小程序简单绘图,通过 json 方式绘制一张朋友圈分享图
Stars: ✭ 117 (-3.31%)
Mutual labels:  canvas
Bubbly Bg
Beautiful bubbly backgrounds in less than 1kB (750 bytes gzipped)
Stars: ✭ 1,554 (+1184.3%)
Mutual labels:  canvas
Pixelfarm
From Vectors to (sub) Pixels, C# 2D Rendering Library
Stars: ✭ 120 (-0.83%)
Mutual labels:  canvas
Canvas grab
🌐 One-click script to synchronize files from Canvas LMS.
Stars: ✭ 118 (-2.48%)
Mutual labels:  canvas

ZigzagView

License API Android Arsenal

a zigzag view for using for ticket or invoice

ZigzagView

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|right|left"
    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
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 (top,bottom,right,left)
zigzagShadowAlpha float 0.5 amount of shadow transparency from [0,1.0]

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 the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].