TextView.setOnEditorActionListener () is the incantation to be used.
thanks,
mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers
Thank you. I knew I was wandering in a dark area I shouldn't be.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To
If you are using a TextView, this is the easiest API:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions
If you are talking directly with an InputConnection directly, you can fill
in your EditorInfo with this and other information as you want.
On Wed, Sep
Thanks, to be clear I'm using the 1.5 SDK and a G1 with 1.5 on it.
How do I assign an action to the Done key? I can see the EditorInfo
class and
can maybe understand how to setup an action but have no idea what to
do with it.
>From the SoftKeyboard example I'm apparently to send one of these to
You get to tell the IME what action to put on it, so the intended action is
up to you. The default is to put next when there is a focusable text view
after the current one (so next will go to it), and done when there is not
(so done will close the keyboard).
On Wed, Sep 23, 2009 at 4:52 PM, Mike
5 matches
Mail list logo