Here is a little more information about the focus behavior. When more then one character is typed into the EditText the EditText loses focus and the dividers of the ListView disappear. If I scroll the list the dividers appear again.
Here is the stack trace showing the ListView requesting focus (among other things) EditText(View).onFocusChanged(boolean, int, Rect) line: 2666 EditText(TextView).onFocusChanged(boolean, int, Rect) line: 6402 EditText(View).unFocus() line: 2594 RelativeLayout(ViewGroup).unFocus() line: 536 ListView(ViewGroup).handleFocusGainInternal(int, Rect) line: 402 ListView(View).requestFocus(int, Rect) line: 3605 ListView(ViewGroup).requestFocus(int, Rect) line: 1028 ListView(View).requestFocus(int) line: 3556 ListView(View).requestFocus() line: 3534 ListView.layoutChildren() line: 1543 ListView(AbsListView).onLayout(boolean, int, int, int, int) line: 1147 ListView(View).layout(int, int, int, int) line: 7035 Why does the ListView need focus at all? I am trying to understand the details of how ListViews handle focus. Thanks. On Jan 3, 4:58 pm, Justin Glaeser <[email protected]> wrote: > Nope this did not solve the problem. > > I have a work around where the parent view is passing any onkey events > to the editText in the header so characters are showing up however the > focus still disappears. > > On Dec 27 2010, 8:25 pm, Sarwar Erfan <[email protected]> wrote: > > > > > > > > > See if your your problem related/similar to > > this?https://groups.google.com/forum/?pli=1#!topic/android-developers/ciMr... > > > Regards > > Sarwar Erfan -- 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

