Dear All
I have an EditText with an InputFilter. The InputFilter
restricts the editable area of the edit text to everything
above inputoffset:
public CharSequence filter(CharSequence source, int start, int end,
Spanned dest, int dstart, int dend) {
if (dstart >= inputoffset) {
return null;
} else {
return dest.subSequence(dstart, dend);
}
}
The above works fine, I can indeed not edit anything
above inputoffset. But the system edit action bar
still thinks the full edit text is editable. Namely:
- Cut Action is enabled, even if selection is above input offset.
- Select All Action selects full text, in the present case
it is desired that only the range inputoffset - text.length
is selected.
How can I programmatically customize the select all action
and the cut action?
Bye
--
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