Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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