All Projects → smuyyh → Bankcardformat

smuyyh / Bankcardformat

Licence: apache-2.0
💳 自动格式化银行卡号的EditText,卡号格式化、归属银行及卡别判断

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Bankcardformat

currency edittext
Simple currency formatter for Android EditText
Stars: ✭ 64 (-76.56%)
Mutual labels:  formatter, edittext
Stringformatter
Simple Text Formetter (Credit Card Number, Phone Number, Serial Number etc.) Can be used in all text inputs according to the format pattern. If desired, large minor character restrictions can be made in the format pattern.
Stars: ✭ 231 (-15.38%)
Mutual labels:  formatter, credit-card
AutoFormatInputWatcher
This repository contains input watcher for auto formatting digits in edit text
Stars: ✭ 15 (-94.51%)
Mutual labels:  formatter, edittext
Maskara
A simple way to format text fields without getting affected by input filters
Stars: ✭ 515 (+88.64%)
Mutual labels:  formatter, edittext
BlockEditText
Block EditText is a library provide an input view present in multiple block style that common use in TAC or credit card field.
Stars: ✭ 113 (-58.61%)
Mutual labels:  credit-card, edittext
CustomEditText
Simple Custom EditText for Android like Instagram
Stars: ✭ 23 (-91.58%)
Mutual labels:  edittext
ddquery
Django Debug Query (ddquery) beautiful colored SQL statements for logging
Stars: ✭ 25 (-90.84%)
Mutual labels:  formatter
pretty-remarkable
Plugin for prettifying markdown with https://github.com/jonschlinkert/remarkable using custom renderer rules.
Stars: ✭ 22 (-91.94%)
Mutual labels:  formatter
toml-sort
Toml sorting library
Stars: ✭ 31 (-88.64%)
Mutual labels:  formatter
Code2HTML
JavaFX tool for converting source code to styled HTML
Stars: ✭ 26 (-90.48%)
Mutual labels:  formatter
BlazorMonaco
Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code.
Stars: ✭ 151 (-44.69%)
Mutual labels:  formatter
clang-format-editor
Clang-Format Editor is a tool that helps you find the best Clang-Format Style for your C++, C#, Java, JavaScript, and Objective-C code.
Stars: ✭ 15 (-94.51%)
Mutual labels:  formatter
snakefmt
The uncompromising Snakemake code formatter
Stars: ✭ 78 (-71.43%)
Mutual labels:  formatter
vgs-collect-ios
VGS Collect iOS SDK
Stars: ✭ 17 (-93.77%)
Mutual labels:  credit-card
Luhn
Smooth UI for Credit Card Entry on Android device, perform check for supported credit card types , pan length and luhn check. Inspired by Uber credit card entry interface
Stars: ✭ 257 (-5.86%)
Mutual labels:  credit-card
pyamex
Python library for accessing American Express account data
Stars: ✭ 15 (-94.51%)
Mutual labels:  credit-card
fiction-dl
A content downloader, capable of retrieving works of (fan)fiction from the web and saving them in a few common file formats.
Stars: ✭ 22 (-91.94%)
Mutual labels:  formatter
nordnet-component-kit
Nordnet Component Kit - https://nordnet.github.io/nordnet-component-kit
Stars: ✭ 12 (-95.6%)
Mutual labels:  formatter
gnt
🍸 GraphQL Normalized Types
Stars: ✭ 32 (-88.28%)
Mutual labels:  credit-card
Text-Length-Bar
No description or website provided.
Stars: ✭ 31 (-88.64%)
Mutual labels:  edittext

BankCardFormat

自动格式化银行卡号的EditText,每四位增加一个空格,并根据银行卡号判断该银行卡归属的银行及卡别

image

使用

dependencies {
    compile 'com.yuyh.bankcardformat:library:1.0.3'
}
<com.example.library.BandCardEditText
    android:id="@+id/et"
    android:layout_width="match_parent"
    android:layout_height="30dp"
    android:text="622700187301032701"
    android:background="#cccccc"/>
  tv = (TextView) findViewById(R.id.tv);
  editText = (BandCardEditText) findViewById(R.id.et);
  editText.setBankCardListener(new BankCardListener() {
      @Override
      public void success(String name) {
          tv.setText("所属银行:" + name);
      }
  
      @Override
      public void failure() {
          tv.setText("所属银行:");
      }
  });

  // 或者直接检测
  String carnum = "622700187301032701";
  if (BankCardUtils.checkBankCard(carnum)) {
      char[] ss = carnum.toCharArray();
      String bank = BankCardUtils.getNameOfBank(ss, 0);
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].