• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    Java
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Custom EditText For Android To Enter Credit Card Numbers

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