{"id":15035649,"url":"https://github.com/vipulasri/ticketview","last_synced_at":"2025-05-15T07:04:55.203Z","repository":{"id":48813584,"uuid":"109925322","full_name":"vipulasri/TicketView","owner":"vipulasri","description":"An Android library to implement TicketView in android with normal, rounded and scallop corners","archived":false,"fork":false,"pushed_at":"2022-07-09T18:24:49.000Z","size":8792,"stargazers_count":1286,"open_issues_count":14,"forks_count":221,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-05-15T07:04:49.441Z","etag":null,"topics":["android","customview","ticketview","ui"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vipulasri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["vipulasri"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/vipulasri"]}},"created_at":"2017-11-08T03:54:52.000Z","updated_at":"2025-04-25T02:23:32.000Z","dependencies_parsed_at":"2022-09-10T21:51:23.860Z","dependency_job_id":null,"html_url":"https://github.com/vipulasri/TicketView","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vipulasri%2FTicketView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vipulasri%2FTicketView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vipulasri%2FTicketView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vipulasri%2FTicketView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vipulasri","download_url":"https://codeload.github.com/vipulasri/TicketView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292039,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","customview","ticketview","ui"],"created_at":"2024-09-24T20:29:07.582Z","updated_at":"2025-05-15T07:04:50.182Z","avatar_url":"https://github.com/vipulasri.png","language":"Java","funding_links":["https://github.com/sponsors/vipulasri","https://www.paypal.me/vipulasri"],"categories":[],"sub_categories":[],"readme":"# TicketView\n\nAn Android Library used to implement TicketView in android with normal, rounded and scallop corners.\n\n### Specs\n[![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15) \n[![Maven Central](https://img.shields.io/maven-central/v/com.vipulasri/ticketview.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.vipulasri%22%20AND%20a:%22ticketview%22) \n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/vipulasri/Timeline-View/blob/master/LICENSE)\n\n\n### Badges/Featured In\n[![TicketView](https://www.appbrain.com/stats/libraries/shield/ticketview.svg)](https://www.appbrain.com/stats/libraries/details/ticketview/ticketview)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Ticket%20View-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6521)\n[![AndroidDev Digest](https://img.shields.io/badge/AndroidDev%20Digest-%23171-blue.svg)](https://www.androiddevdigest.com/digest-171/) \n\n![showcase](https://github.com/vipulasri/TicketView/blob/master/art/showcase.png)\n\n## Sample Project\n\nFor information : checkout [Sample App Code](https://github.com/vipulasri/TicketView/tree/master/sample) in repository.\n\n### Download\n\n[![TicketView on Google Play](https://github.com/vipulasri/TicketView/blob/master/art/google_play.png)](https://play.google.com/store/apps/details?id=com.vipulasri.ticketview.sample)\n\n## Quick Setup\n\n### 1. Include library\n\n**Using Gradle**\n\n``` gradle\ndependencies {\n    implementation 'com.vipulasri:ticketview:1.1.2'\n}\n```\n\n### What's New\n\nSee the project's Releases page for a list of versions with their change logs.\n\n### [View Releases](https://github.com/vipulasri/TicketView/releases)\n\nIf you Watch this repository, GitHub will send you an email every time I publish an update.\n\n### 2. Usage\n * In XML Layout :\n\n``` java\n\u003ccom.vipulasri.ticketview.TicketView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"160dp\"\n        android:layout_marginTop=\"60dp\"\n        android:layout_marginLeft=\"20dp\"\n        android:layout_marginRight=\"20dp\"\n        android:id=\"@+id/ticketView\"\n        app:ticketOrientation=\"vertical\"\n        app:ticketScallopRadius=\"10dp\"\n        app:ticketShowBorder=\"false\"\n        app:ticketScallopPositionPercent=\"50\"\n        app:ticketShowDivider=\"true\"\n        app:ticketDividerType=\"dash\"\n        app:ticketDividerPadding=\"0dp\"\n        app:ticketElevation=\"14dp\"/\u003e\n```\n\n* Configure using xml attributes or setters in code:\n\n    \u003ctable\u003e\n    \u003cth\u003eAttribute Name\u003c/th\u003e\n    \u003cth\u003eDefault Value\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketOrientation=\"vertical\"\u003c/td\u003e\n        \u003ctd\u003ehorizontal\u003c/td\u003e\n        \u003ctd\u003esets orientation of divider and scallop\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketBackgroundColor=\"@android:color/black\"\u003c/td\u003e\n        \u003ctd\u003ewhite\u003c/td\u003e\n        \u003ctd\u003esets background color\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketScallopRadius=\"10dp\"\u003c/td\u003e\n        \u003ctd\u003e20dp\u003c/td\u003e\n        \u003ctd\u003esets scallop radius\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketScallopPositionPercent=\"50\"\u003c/td\u003e\n        \u003ctd\u003e50\u003c/td\u003e\n        \u003ctd\u003esets position of scallop and divider\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketShowBorder=\"false\"\u003c/td\u003e\n        \u003ctd\u003efalse\u003c/td\u003e\n        \u003ctd\u003eshows border if `true`\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketBorderWidth=\"4dp\"\u003c/td\u003e\n        \u003ctd\u003e2dp\u003c/td\u003e\n        \u003ctd\u003esets border width\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketBorderColor=\"@color/grey\"\u003c/td\u003e\n        \u003ctd\u003eblack\u003c/td\u003e\n        \u003ctd\u003esets border color\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketShowDivider=\"true\"\u003c/td\u003e\n        \u003ctd\u003efalse\u003c/td\u003e\n        \u003ctd\u003eshows divider if `true`\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerType=\"dash\"\u003c/td\u003e\n        \u003ctd\u003enormal\u003c/td\u003e\n        \u003ctd\u003esets type of divider ie `normal` or `dash`\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerColor=\"@color/colorAccent\"\u003c/td\u003e\n        \u003ctd\u003edark gray\u003c/td\u003e\n        \u003ctd\u003esets divider color\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerWidth=\"2dp\"\u003c/td\u003e\n        \u003ctd\u003e2dp\u003c/td\u003e\n        \u003ctd\u003esets divider width\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerPadding=\"0dp\"\u003c/td\u003e\n        \u003ctd\u003e10dp\u003c/td\u003e\n        \u003ctd\u003esets divider padding\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerDashGap=\"4dp\"\u003c/td\u003e\n        \u003ctd\u003e4dp\u003c/td\u003e\n        \u003ctd\u003esets divider dash gap\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketDividerDashLength=\"8dp\"\u003c/td\u003e\n        \u003ctd\u003e8dp\u003c/td\u003e\n        \u003ctd\u003esets divider dash length\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketCornerType=\"rounded\"\u003c/td\u003e\n        \u003ctd\u003enormal\u003c/td\u003e\n        \u003ctd\u003esets type of corner ie `normal` or `rounded` or `scallop`\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketCornerRadius=\"15dp\"\u003c/td\u003e\n        \u003ctd\u003e4dp\u003c/td\u003e\n        \u003ctd\u003esets corner radius if corner rounder or scallop\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eapp:ticketElevation=\"14dp\"\u003c/td\u003e\n        \u003ctd\u003e0dp\u003c/td\u003e\n        \u003ctd\u003esets elevation to ticket view on android jellybean and above\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n       \u003ctd\u003eapp:ticketBackgroundBeforeDivider\u003c/td\u003e\n       \u003ctd\u003enone\u003c/td\u003e\n       \u003ctd\u003esets background to ticket view before divider\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n       \u003ctd\u003eapp:ticketBackgroundAfterDivider\u003c/td\u003e\n       \u003ctd\u003enone\u003c/td\u003e\n       \u003ctd\u003esets background to ticket view after divider\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n       \u003ctd\u003eapp:ticketShadowColor\u003c/td\u003e\n       \u003ctd\u003eblack\u003c/td\u003e\n       \u003ctd\u003esets shadow to ticket view\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003c/table\u003e\n \n## Apps that use this library\n\n* [Open. Yoga](https://play.google.com/store/apps/details?id=com.labfoodandfriends.nikitagudkovs.jlogOpen_yoga)\n* [Open. Gym](https://play.google.com/store/apps/details?id=com.labfoodandfriends.nikitagudkovs.jlog_gym)\n\n[Apps using Ticket View, via AppBrain Stats](https://www.appbrain.com/stats/libraries/details/ticketview/ticketview)\n\nIf you're using this library in your app and you'd like to list it here,\nPlease let me know via [email](mailto:me@vipulasri.com), [pull requests](https://github.com/vipulasri/TicketView/pulls) or [issues](https://github.com/vipulasri/TicketView/issues).\n\n## Special Thanks\n\n[**Nick Butcher**](https://github.com/nickbutcher) for helping me out with TicketView Shadow/Elevation.\n\n\n## License\n\n\n    Copyright 2017 Vipul Asri\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvipulasri%2Fticketview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvipulasri%2Fticketview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvipulasri%2Fticketview/lists"}