Comments (1)
Hi @serjTi! Thanks for your question.
I assume you are aware of the SDK reference for the EditText
component and its setHint()
method in particular.
According to the README example, you may want to set a MaskedTextChangedListener
instance as a OnFocusChangeListener
for your text field by calling
editText.setOnFocusChangeListener(listener);
— this way, you'll be able to use an "autocomplete" option whenever your text field gets focus in order to put prefix symbols before the user input.
First of all, It's not a necessary call.
Second, you may want to track an OnFocusChange
event by yourself AND have this functionality at the same time.
In this case, I'd recommend you to implement a decorator over the MaskedTextChangedListener
instance with the interface of OnFocusChangeListener
— and then put your decorator in place of the OnFocusChangeListener
.
It looks like an overkill for a simple hint change, though.
from input-mask-android.
Related Issues (20)
- Can add IP Mask Example ?
- Migrate to Maven Central HOT 17
- Wrong truncation when pasting phone number HOT 2
- IndexOutOfBoundsException: setSpan (17 ... 17) ends beyond length 2 HOT 5
- EditText showing "(" on back navigation HOT 2
- affineFormats конфликтуют. HOT 6
- Crashes while deleting the characters HOT 5
- Странный конфликт с двумя масками HOT 3
- Switching keyboards in mask HOT 1
- Could not find com.redmadrobot:input-mask-android:6.0.0 HOT 2
- Possibility to enter any character HOT 2
- Elliptical masks not working HOT 1
- Could not resolve com.redmadrobot:inputmask:4.1.0 HOT 1
- Different weight validators patterns in a single field. HOT 1
- Update the wikis
- Repair JetPack Builds HOT 2
- Custom countries list for PhoneInputListener HOT 3
- The issue with doubling HOT 1
- Move the library to another repository HOT 1
- Change setting Gradle for Android Studio Giraffe. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from input-mask-android.