let's say we have an edittext with some text, for example the text
is : "foo bar"
now we highlight "o b" like this: fo[o b]ar
then hit any key, for example I hit "x", then the text will be: foxar
So my question is, which methods will be called immediately I hit "x"?
I fingured out 2 methods:
 - protected void onSelectionChanged(int selStart, int selEnd), this
method I overrode by extending class "EditText"
 - public void onTextChanged(CharSequence s, int start, int before,
int count), this method I overrode by implementing interface
"TextWatcher", in interface "TextWatcher" I found some other methods
but they're similar to onTextChanged

When i hit "x", above methods will be run in order:
 onSelectionChanged of EditText => methods of TextWatcher

I'm finding a method which will be run before onSelectionChanged,
anyone know what is that method?
Thank you all!

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

Reply via email to