Android Card-Library

Platform API

Technology Stack

  • Android Studio Bumblebee | 2021.1.1 Patch 1
  • Android SDK 30
  • Supported OS: Min 17 up to latest
  • Gradle 7.2

Demo

Download

add the dependency to your project build.gradle file:

dependencies {
  implementation 'com.github.egpayawal:android-card-library:$version'
}

Usage

<com.egpayawal.card_library.view.CardTextInputEditText
    android:id="@+id/txtInputCard"
    style="@style/Styles.Input.TextInputEditText.Filled.Outlined"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:displayCardIcon="true"
    app:separatorState="spaceSpan" />

or

<com.egpayawal.card_library.view.CardTextInputEditText
    android:id="@+id/txtInputCard"
    style="@style/Styles.Input.TextInputEditText.Filled.Outlined"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:displayCardIcon="true"
    app:separatorState="spaceWithDash" />

For card expiration:

binding.txtInputCardExpiration.addTextChangedListener(CreditCardExpiryTextWatcher(binding.txtInputCardExpiration))

GitHub

View Github