azimolabs / maskformatter Goto Github PK
View Code? Open in Web Editor NEWAdd text masking functionality to Android EditText. It will prevent user from inserting not allowed signs, and format input as well.
License: Apache License 2.0
Add text masking functionality to Android EditText. It will prevent user from inserting not allowed signs, and format input as well.
License: Apache License 2.0
Instead of "AA 99" can i do "(AA)-99" ?
Hi,
Not working on HTC device. It deletes the last letter.
MaskFormatter should update keyboard type (number/text) on the fly, depending on currently given mask char.
Implement easy way to get raw text from EditText without applied formatting.
My use case is for a user entering a social security number in the format 999-99-9999. (I added dashes in PR #6).
Right now the MaskFormatter#setInputTypeBasedOnMask
resets the input-type causing the password type to be lost.
See the GIF below for a demo where the EditText
has numberPassword
for the inputType
:
<EditText
android:id="@+id/ssnChars"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text|textNoSuggestions|numberPassword"/>
Hello, I'm making an app for car license plates but there are multiple license plate types. How can I do them in a single edittext?
example:
99 A 99999,
99 AA 999
or 99 AAA 999
Hi there,
I like this lib.
So I started with a German IBAN.
The mask is like this: "AA99 9999"
Now I want to prefill the EditText with "DE".
But setting it in JAVA (after the TextChangedListener is added) and/or in XML like android:text="DE" the keyboard is wrong.
The keyboard should only show digits, but it shows alphanumeric.
Greetings,
DaRolla
Would it be possible to get a new release on bintray with the latest changes from January?
Thanks
Due to the jcenter repository is deprecated we need this library in another repository in order to continue using it; it would be nice because we are happy whit it in our project.
Thank you.
Would be great if I could define some portions of pattern unalterable for user. For example I'd like user to enter his mobile phone number but I'd also like to restrict the country, i.e. +48
for Poland. For now I need to move +48
out of the pattern, to separate TextView
, but if I'd just do i.e.
[+48] 999 9999999
and the text in []
would be shown but be unalterable/non-erasable by user, it'd be great. When user finishes I'd like get it all back, incl. +48
part.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.