Giter Site home page Giter Site logo

naseemakhtar994 / ticketview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vipulasri/ticketview

0.0 1.0 1.0 8.54 MB

An Android library to implement TicketView in android

License: Apache License 2.0

Java 100.00%
android ui ticketview customview bookmyshow

ticketview's Introduction

TicketView

An Android Library used to implement TicketView in android

Specs

Download MethodsCount License

Badges/Featured In

Android Arsenal

showcase

Sample Project

For information : checkout Sample App Code in repository.

Download

TicketView on Google Play

Quick Setup

1. Include library

Using Gradle

dependencies {
    compile 'com.vipulasri:ticketview:1.0.2'
}

Using Maven

<dependency>
    <groupId>com.vipulasri</groupId>
    <artifactId>ticketview</artifactId>
    <version>1.0.2</version>
    <type>pom</type>
</dependency>

What's New

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

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:orientation="vertical"
        app:scallopRadius="10dp"
        app:showBorder="false"
        app:scallopPositionPercent="50"
        app:showDivider="true"
        app:dividerType="dash"/>
  • Configure using xml attributes or setters in code:

    Attribute Name Default Value Description
    app:orientation="vertical" horizontal sets orientation of divider and scallop
    app:backgroundColor="@android:color/black" white sets background color
    app:scallopRadius="10dp" 20dp sets scallop radius
    app:scallopPositionPercent="50" 50 sets position of scallop and divider
    app:showBorder="false" false shows border if `true`
    app:borderWidth="4dp" 2dp sets border width
    app:borderColor="@color/grey" black sets border color
    app:showDivider="true" false shows divider if `true`
    app:dividerType="dash" normal sets type of divider ie `normal` or `dash`
    app:dividerColor="@color/colorAccent" dark gray sets divider color
    app:dividerWidth="2dp" 2dp sets divider width
    app:dividerDashGap="4dp" 4dp sets divider dash gap
    app:dividerDashLength="8dp" 8dp sets divider dash length
    app:cornerType="rounded" normal sets type of corner ie `normal` or `rounded` or `scallop`
    app:cornerRadius="15dp" 4dp sets corner radius if corner rounder or scallop

Apps that use this library

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.

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.

ticketview's People

Contributors

vipulasri avatar

Watchers

Naseem Akhtar avatar

Forkers

ramanasha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.