Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Morxander/EditCard
Custom EditText For Android To Enter Credit Card Numbers
https://github.com/Morxander/EditCard
Last synced: about 1 month ago
JSON representation
Custom EditText For Android To Enter Credit Card Numbers
- Host: GitHub
- URL: https://github.com/Morxander/EditCard
- Owner: Morxander
- License: gpl-3.0
- Created: 2016-11-21T18:29:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T03:21:00.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T01:23:34.888Z (4 months ago)
- Language: Java
- Size: 222 KB
- Stars: 106
- Watchers: 3
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: README.MD
- License: LICENSE.md
Awesome Lists containing this project
- awesome-github-android-ui - EditCard - 输入信用卡号码的自定义EditText (CreditCard)
README
# EditCard
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-EditCard-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4704)![EditCard](https://raw.githubusercontent.com/Morxander/EditCard/master/demo.gif)
Custom EditText For Android To Enter Credit Card Numbers
### Download
Download via Gradle:
```gradle
compile 'morxander.editcard:EditCard:1.0.1'
```### Usage
```xml
```
In activity class:
```java
EditCard edit_card = (EditCard) findViewById(R.id.card);
edit_card.getCardNumber(); // Get the card number
edit_card.isValid(); // Is the card number valid
edit_card.getCardType(); // Get the card type
```For now we only support the following card types :
* VISA
* MASTERCARD
* American Express
* DISCOVER
* JCB
* Discover### License
GNU GENERAL PUBLIC LICENSE 3