House Of Cards
Tools for working with a house of (credit) cards.
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
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.