Maybe create a TextWatcher subclass and call this method?
/**
* Adds a TextWatcher to the list of those whose methods are called
* whenever this TextView's text changes.
* <p>
* In 1.0, the {@link TextWatcher#afterTextChanged} method was
erroneously
* not called after {@link #setText} calls. Now, doing {@link #setText}
* if there are any text changed listeners forces the buffer type to
* Editable if it would not otherwise be and does call this method.
*/
public void *addTextChangedListener*(TextWatcher watcher) {
if (mListeners == null) {
mListeners = new ArrayList<TextWatcher>();
}
mListeners.add(watcher);
}
On Friday, March 1, 2013 5:54:39 AM UTC-6, Arun Kumar K wrote:
>
> Hi Guys,
>
> I have one problem in edit text....if i enter the number in edit text i
> want to display like this 1234-5678-9102-3214
>
> Constrain is
> Input Type="number"
> maximumlength="19"
>
>
> how can i do this one pls help me
>
> --
> *Thanks & Regards*
> *K.Arun Kumar*
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.