/NamshiCreditCardInput

UI library to capture credit card numbers, Optimized for GCC region

Primary LanguageKotlinMIT LicenseMIT

API CI Maven Central License: MIT

NamshiCreditCardInput

Introduction

UI library to capture credit card numbers, Optimized for GCC region

Import as dependency

build.gradle (it's available on Maven Central):

Gradle Groovy DSL

dependencies {
    implementation 'com.namshi.cardinput:cardinput:1.1.0'
}

Gradle Kotlin DSL

dependencies {
    implementation("com.namshi.cardinput:cardinput:1.1.0")
}

Sample code

        <com.namshi.cardinput.view.CardInputWidget
            android:id="@+id/card_input_widget"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginTop="-48dp"
            android:layoutDirection="ltr"
            android:paddingStart="10dp"
            android:paddingEnd="10dp" />

Screenshots