Okay, it seems to have something to do with the focus.

My layout contains a title button followed by a ListView, and the
title button has focus first.  When I press DOWN once, the first item
of the ListView is then highlighted, but the list has not reloaded as
it should.

However, when I press UP while on that first item, the list has
reloaded and the details of the first item are revealed.

Small, but strange, bug.

On Aug 28, 12:30 pm, kingkung <[EMAIL PROTECTED]> wrote:
> Update... getListView().invalidateViews() seems to be called just
> fine... it's just that the ListAdapter doesn't seem to be re-calling
> getView() on the list items, even though invalidateViews() has been
> called...
>
> On Aug 28, 12:07 pm, kingkung <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm having issues with ListView in 0.9 beta that worked fine in m5.  I
> > have an onItemSelectedListener registered on my listview, so when I
> > select an item in the list, the list should invalidate and the item
> > should expand to reveal more information.
>
> >                 getListView().setOnItemSelectedListener(new 
> > OnItemSelectedListener()
> > {
> >                         public void onItemSelected(AdapterView parent, View 
> > v,
> >                                         int position, long id) {
> >                                 getListView().invalidateViews();
> >                         }
> >                         public void onNothingSelected(AdapterView arg0) {
> >                                 getListView().invalidateViews();
> >                         }
> >                 });
>
> > Nothing happens when I scroll down the list, however... there is no
> > indication that the ListAdapter is making any attempt to redraw the
> > views.
>
>
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to