Skip to content
Android tools for working with a house of (credit) cards
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
library
sample
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
dependencies.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

House Of Cards

Travis build status

Tools for working with a house of (credit) cards.

FRANK UNDERWOOD

Installation

compile 'com.prolificinteractive:houseofcards:1.0.1'

Usage

Add a textWatcher to your EditText:

editText.addTextChangedListener(new CreditCardTextWatcher());

You can also pass in your own instance of CreditCardUtil to control what card types are used:

CreditCardUtil cardUtil = new CreditCardUtil(CreditCardUtil.VISA);
editText.addTextChangedListener(new CreditCardTextWatcher(cardUtil));

And you're not just limited to built in types! Just implement CreditCard!

Contributing to House Of Cards

To report a bug or enhancement request, feel free to file an issue under the respective heading.

If you wish to contribute to the project, fork this repo and submit a pull request. Code contributions should follow the standards specified in the Prolific Android Style Guide.

License

prolific

Copyright (c) 2017 Prolific Interactive

HouseOfCards is maintained and sponsored by Prolific Interactive. It may be redistributed under the terms specified in the LICENSE file.

Name Disclaimer

This project is in no way affiliated with the Netflix Original Series House of Cards or the UK television series of the same name. This project is about credit card validation, not corrupt politicians.

You can’t perform that action at this time.