https://github.com/prolificinteractive/houseofcards
Android tools for working with a house of (credit) cards
https://github.com/prolificinteractive/houseofcards
Last synced: about 1 year ago
JSON representation
Android tools for working with a house of (credit) cards
- Host: GitHub
- URL: https://github.com/prolificinteractive/houseofcards
- Owner: prolificinteractive
- License: mit
- Created: 2014-07-29T00:22:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T13:53:14.000Z (about 9 years ago)
- Last Synced: 2025-04-03T19:11:32.395Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 140 KB
- Stars: 27
- Watchers: 39
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# House Of Cards
[](https://travis-ci.org/prolificinteractive/houseofcards)
_Tools for working with a house of (credit) cards._

## Installation
```gradle
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](https://github.com/prolificinteractive/android-code-styles).
## License

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.
[LICENSE]: ./LICENSE
## 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.