[android-developers] AutoCompleteTextView behavior
I'm trying to convert an EditText to a AutoCompleteTextView. There is another EditText on the same page. When I had two EditText controls, the keyboard would say "Next" while the entry was going on for the fist one and then say "done" for the second one.
After converting the first EditText to an AutoCompleteTextView, the Next button would not skip down to what used to be the second EditText. After looking around for a solution I found that if I added the following...
android:imeOptions="actionNext"
That would solve my problem and it did cause the cursor to skip down to the EditText BUT now my onKey event does not get executed!!
public boolean onKey(View v, int keyCode, KeyEvent event)
So, the imeOptions solution causes worst behavior. I want the Next key to obviously trigger the onKey event and also migrate the cursor to the EditText field.
Actually, I would be happy for the keyboard to just have a "Done" key on the AutoCompleteTextView because I never liked the "Next" thing anyway. Is there anyway of just doing away with this whold Next metaphor and just having the keyboard always say "Done" for all the entry fields on a page? Thanks, Gary
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 unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home