VicMikhailau / MaskedEditText

It allows you to add a mask to EditText
Apache License 2.0
287 stars 51 forks source link

Two way databinding #29

Open IntelliJAbhishek opened 3 years ago

IntelliJAbhishek commented 3 years ago

How to use this edit text with two way data binding?

VicMikhailau commented 3 years ago

Hi, @IntelliJAbhishek. MskedEditText is just usual custom EditText. Please follow the android developer guidelines. If you have some problems with MaskedEditText, you can create an own realization of it based on the code provided in the library. Thanks.

IntelliJAbhishek commented 3 years ago

Yeah but due to text watcher we can't use data-binding directly

VicMikhailau commented 3 years ago

@IntelliJAbhishek Yes. I see. Unfortunately, I can't provide a particular way for that case. I can only suggest trying to use library classes directly in your project and override the needed behavior.

VicMikhailau commented 3 years ago

@IntelliJAbhishek If you find any solution please post it here and feel to free make any improvements to the library by creating e.g. a pull request. Thanks.