Thursday, December 23, 2010

[android-developers] EditText in Header of ListView loses focus after first character is entered

Hello,

I have inflated a relativeLayout with a EditText inside and I am using
it as a filter for the list in the list header.

mListView.addHeaderView(searchBar, null, true);


Selecting the EditText causes the input to gain focus and the soft
keyboard to show itself; however, after entering in the first letter
the list is filtered, and the EditText focus is gone. Typing other
characters has no effect on the input and I must reselect the input in
order to type the next letter. Any suggestions on how the EditText
can keep the focus and received additional keys presses from the
keyboard? Thanks.

--
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

No comments:

Post a Comment