Custom EditText For Android To Enter Credit Card Numbers
Java
Latest commit a2c50ce Nov 30, 2016 @Morxander Changing the demo GIF
Permalink
Failed to load latest commit information.
.idea Using Java8 Nov 22, 2016
EditCard Modifying build.gradle & readme file for V1.0.1 Nov 30, 2016
gradle/wrapper Version 1.0 Nov 21, 2016
.gitignore Version 1.0 Nov 21, 2016
LICENSE.md Update LICENSE.md Nov 21, 2016
README.MD Changing the demo GIF Nov 30, 2016
build.gradle Version 1.0 Nov 21, 2016
demo.gif Changing the demo GIF Nov 30, 2016
gradle.properties Using Java8 Nov 22, 2016
gradlew Version 1.0 Nov 21, 2016
gradlew.bat Version 1.0 Nov 21, 2016
settings.gradle Version 1.0 Nov 21, 2016

README.MD

EditCard

Android Arsenal

EditCard

Custom EditText For Android To Enter Credit Card Numbers

Download

Download via Gradle:

compile 'morxander.editcard:EditCard:1.0.1'

Usage

<morxander.editcard.EditCard
        android:id="@+id/card"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

In activity class:

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