EditText Ignores The ImeActionLabel
Using a Samsung Galaxy Ace, when i instantiate the editText i try and set a custom label that is being ignored at the moment (no third-party keyboard) same behaviour on a Samsung G
Solution 1:
There are many ways to try to control what goes on the action button, including:
imeOptions
imeActionLabel
setImeActionLabel()
Which, if any, of those will work will depend upon the implementation of the input method editor (IME, a.k.a., soft keyboard). Ideally, each IME will honor all of them... at least, when used individually.
However:
The behavior when you specify it more than one is undefined
There is no requirement of any IME to even have an action button, let alone honor your request for a particular caption on that button
In general, I recommend specifying the action button label in one spot. My guess is that imeOptions
is most likely to be honored, so if your desired label is one of the standard options (e.g., "send"), use that.
Post a Comment for "EditText Ignores The ImeActionLabel"