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 Collins <[email protected]>wrote: > > > The "Next" key seems to move to the next item that could interact with > the keyboard. > > The "Done" key is less clear to me. It sends in a > KeyEvent.KEYCODE_ENTER > event. Is it possible to distinguish this event from the down-and- > left-arrow key > that also sends in a KeyEvent.KEYCODE_ENTER? It appears that you get > either but not both "Done" or down-and-left-arrow buttons on the soft > keyboard. > > Am I missing some documentation about this? > > Is it "good UI" to have the "Done" key execute the action that would > normally > be done on an "OK" button? E.g. for a username and password dialog > that has > two text fields and an OK button the user touches the username field, > gets > the soft keyboard, types, presses "Next", types, presses "Done" and > the > dialog submits the username and password and goes away. > > Or is it "good UI" to force the user to explicitly touch the OK > button? Possibly > having to also manually dismiss the soft keyboard if it covers up the > OK button. > > tia, > mike > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

