prayansh / RichText

Java Text Formatting Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextFormatAndroid (In Progress)


A simple EditText for Android with built-in masking functions.

Why?

There are lots of great libraries out there to help out with masking EditText Input with a specific pattern but none which feature pre-built functionality for some basic text formatting like phone number, credit card number and decimal number formatting.

Features

  • Phone Number Format (eg. (123) 456 7890 or 123-456-7890)
  • Credit Card Format (eg. 1234 5678 1234 5678)
  • Number Format (eg. 1,22,345 or 122,345) and other likely such formats
  • Date Format (eg. 2016/16/07 or 16/07/2016)
  • Prefix Text (eg. PREFIX)
  • Suffix Text (eg. SUFFIX)

Inspired by Cleave.js

License


Copyright 2016 Prayansh Srivastava

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Java Text Formatting Library


Languages

Language:Java 100.0%