All Projects → vipulasri → Ticketview

vipulasri / Ticketview

Licence: apache-2.0
An Android library to implement TicketView in android with normal, rounded and scallop corners

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Ticketview

Bifacialview
Stars: ✭ 355 (-69.92%)
Mutual labels:  customview
Circular Music Progressbar
Beautiful Circular Progress Bar with album art for android
Stars: ✭ 813 (-31.1%)
Mutual labels:  customview
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (-95.34%)
Mutual labels:  customview
Flutter deer
🦌 Flutter 练习项目(包括集成测试、可访问性测试)。内含完整UI设计图,更贴近真实项目的练习。Flutter practice project. Includes a complete UI design and exercises that are closer to real projects.
Stars: ✭ 5,725 (+385.17%)
Mutual labels:  customview
Puzzleview
Android Jigsaw puzzle support,inspired by Instagram's layout.
Stars: ✭ 727 (-38.39%)
Mutual labels:  customview
Multisearchview
Yet another built-in animated search view for Android.
Stars: ✭ 837 (-29.07%)
Mutual labels:  customview
Ferris Wheel
Simple android library to present an animated ferris wheel
Stars: ✭ 308 (-73.9%)
Mutual labels:  customview
Stickerview
[No more support] A view which can add sticker and zoom,drag,delete it
Stars: ✭ 1,155 (-2.12%)
Mutual labels:  customview
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (-36.61%)
Mutual labels:  customview
Legacytableview
simple light weight android library for displaying tabulated data
Stars: ✭ 39 (-96.69%)
Mutual labels:  customview
Contourview
🦄 利用本库绘制出贝塞尔曲线魔炫背景。Customize view:Draw the magic dazzle background with Bézier.
Stars: ✭ 542 (-54.07%)
Mutual labels:  customview
Animatedtablayout
Yet another android tab layout
Stars: ✭ 572 (-51.53%)
Mutual labels:  customview
Featuredrecyclerview
Ultimate recycler view.
Stars: ✭ 872 (-26.1%)
Mutual labels:  customview
Remotecontrolview
一款万能遥控器的交互效果
Stars: ✭ 376 (-68.14%)
Mutual labels:  customview
Circlefloatbar
CircleFloatBar(with animation) 圆形悬浮窗(带动画特效)
Stars: ✭ 63 (-94.66%)
Mutual labels:  customview
Progressview
Styleable progress view
Stars: ✭ 323 (-72.63%)
Mutual labels:  customview
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-97.97%)
Mutual labels:  customview
Parallaxview
Parallax view for android apps written in Kotlin
Stars: ✭ 70 (-94.07%)
Mutual labels:  customview
Recordbutton
Android record button view
Stars: ✭ 65 (-94.49%)
Mutual labels:  customview
Fillingbutton
🔥Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-97.37%)
Mutual labels:  customview

TicketView

An Android Library used to implement TicketView in android with normal, rounded and scallop corners.

Specs

API Maven Central License

Badges/Featured In

TicketView Android Arsenal AndroidDev Digest

showcase

Sample Project

For information : checkout Sample App Code in repository.

Download

TicketView on Google Play

Quick Setup

1. Include library

Using Gradle

dependencies {
    implementation 'com.vipulasri:ticketview:1.1.2'
}

What's New

See the project's Releases page for a list of versions with their change logs.

View Releases

If you Watch this repository, GitHub will send you an email every time I publish an update.

2. Usage

  • In XML Layout :
<com.vipulasri.ticketview.TicketView
        android:layout_width="match_parent"
        android:layout_height="160dp"
        android:layout_marginTop="60dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:id="@+id/ticketView"
        app:ticketOrientation="vertical"
        app:ticketScallopRadius="10dp"
        app:ticketShowBorder="false"
        app:ticketScallopPositionPercent="50"
        app:ticketShowDivider="true"
        app:ticketDividerType="dash"
        app:ticketDividerPadding="0dp"
        app:ticketElevation="14dp"/>
  • Configure using xml attributes or setters in code:

    Attribute Name Default Value Description
    app:ticketOrientation="vertical" horizontal sets orientation of divider and scallop
    app:ticketBackgroundColor="@android:color/black" white sets background color
    app:ticketScallopRadius="10dp" 20dp sets scallop radius
    app:ticketScallopPositionPercent="50" 50 sets position of scallop and divider
    app:ticketShowBorder="false" false shows border if `true`
    app:ticketBorderWidth="4dp" 2dp sets border width
    app:ticketBorderColor="@color/grey" black sets border color
    app:ticketShowDivider="true" false shows divider if `true`
    app:ticketDividerType="dash" normal sets type of divider ie `normal` or `dash`
    app:ticketDividerColor="@color/colorAccent" dark gray sets divider color
    app:ticketDividerWidth="2dp" 2dp sets divider width
    app:ticketDividerPadding="0dp" 10dp sets divider padding
    app:ticketDividerDashGap="4dp" 4dp sets divider dash gap
    app:ticketDividerDashLength="8dp" 8dp sets divider dash length
    app:ticketCornerType="rounded" normal sets type of corner ie `normal` or `rounded` or `scallop`
    app:ticketCornerRadius="15dp" 4dp sets corner radius if corner rounder or scallop
    app:ticketElevation="14dp" 0dp sets elevation to ticket view on android jellybean and above
    app:ticketBackgroundBeforeDivider none sets background to ticket view before divider
    app:ticketBackgroundAfterDivider none sets background to ticket view after divider
    app:ticketShadowColor black sets shadow to ticket view

Apps that use this library

Apps using Ticket View, via AppBrain Stats

If you're using this library in your app and you'd like to list it here, Please let me know via email, pull requests or issues.

Special Thanks

Nick Butcher for helping me out with TicketView Shadow/Elevation.

License

Copyright 2017 Vipul Asri

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].