[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
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

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
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

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Dianne Hackborn
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

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
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

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Dianne Hackborn
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