All Projects → aldoKelvianto → AutoFormatEditText

aldoKelvianto / AutoFormatEditText

Licence: Apache-2.0 license
Android Library for auto-formatting money on EditText

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to AutoFormatEditText

EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (+71.7%)
Mutual labels:  money, edittext
CurrencyEditText
A simple EditText input designed to input decimal and currency values.
Stars: ✭ 18 (-66.04%)
Mutual labels:  money, edittext
Easymoney
Library for operating with monetary values in JavaScript and Typescript 💵
Stars: ✭ 145 (+173.58%)
Mutual labels:  money
Money
A Ruby Library for dealing with money and currency conversion.
Stars: ✭ 2,451 (+4524.53%)
Mutual labels:  money
Dimeshift
💰💰💰 the easiest way to track your expenses. Free. Open-source. Node.js
Stars: ✭ 173 (+226.42%)
Mutual labels:  money
Bdgt
Big finance tools in a small package
Stars: ✭ 159 (+200%)
Mutual labels:  money
Cry
Cross platform PoC ransomware written in Go
Stars: ✭ 179 (+237.74%)
Mutual labels:  money
Django Prices
Django fields for the prices module
Stars: ✭ 135 (+154.72%)
Mutual labels:  money
Prices
Python price handling for humans.
Stars: ✭ 248 (+367.92%)
Mutual labels:  money
Moneyfox
A way to make budgeting easy. A basic idea for the community, made even better by the community.
Stars: ✭ 170 (+220.75%)
Mutual labels:  money
Silverstrike
Finance Management Made Easy
Stars: ✭ 213 (+301.89%)
Mutual labels:  money
Cash Cli
💰💰 Convert currency rates directly from your terminal!
Stars: ✭ 168 (+216.98%)
Mutual labels:  money
Ngx Currency
📦 Currency mask module for Angular
Stars: ✭ 161 (+203.77%)
Mutual labels:  money
Zold
An Experimental Non-Blockchain Cryptocurrency for Fast Micro Payments
Stars: ✭ 183 (+245.28%)
Mutual labels:  money
Stripe
💰 Stripe API
Stars: ✭ 150 (+183.02%)
Mutual labels:  money
Jsr354 Ri
JSR 354 - Moneta: Reference Implementation
Stars: ✭ 223 (+320.75%)
Mutual labels:  money
Nodamoney
NodaMoney provides a library that treats Money as a first class citizen and handles all the ugly bits like currencies and formatting.
Stars: ✭ 144 (+171.7%)
Mutual labels:  money
Jackson Datatype Money
Extension module to properly support datatypes of javax.money
Stars: ✭ 165 (+211.32%)
Mutual labels:  money
Walletjs
💳A little library to handle money amounts.
Stars: ✭ 177 (+233.96%)
Mutual labels:  money
Megacoin
Welcome to Megacoin MΣC - Around the World!
Stars: ✭ 16 (-69.81%)
Mutual labels:  money

Android Arsenal License

Not Maintained

I develop this library years ago and currently developing this library is not a priority. So if there is a bug or future request, you may look at other library or submit a PR. Thank you.

Summary:

I made this library with single purpose, to auto format number while user type arbitrary number. For example: 150000 -> 15,000. 276000800.50 -> 276,000,800.50

While this is easy to achieve using simple format, I find it challenging when you involve user interaction (on EditText), especially after inserting or deleting a text. With this library user can type money on EditText without worrying it will not incorrectly formatted.

Demo:

AutoFormat in Action

Usage:

add this on your app level gradle

compile 'com.aldoapps:autoformatedittext:0.9.3'

Example

See sample app to see it in action. It's very simple, just apply AutoFormatEditText like an EditText on your layout

<com.aldoapps.autoformatedittext.AutoFormatEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:isDecimal="true"
android:maxLength="10"/>

By default this doesn't support Decimal input, to enable decimal input use app:isDecimal="true" on its attribute. Value after Decimal will not be auto formatted. You can also use all TextView's attribute like maxLength to limit user input.

Feature:

  • Thousands separated number auto-format
  • Value after dots will not be formatted i.e 732,000.502816
  • Support with or without decimal formatting
  • Various input restriction (Soft input keyboard and max length)

You may find this library useful for:

  • Calculator app
  • Banking / Finance app
  • Any app that involve auto formatting

License

Copyright 2016 Aldo Kelvianto Wachyudi

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.
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].