-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

This should be a very simple thing, but it's driving me crazy and
currently one of the older bugs of my app. Given an ExpandableListView
I want to collapse all the groups but the last one and expand the last
one. The code below doesn't work (basically seems to do things at
random). Thanks.



            final ExpandableListView expandableListView =
getExpandableListView();
            final int groupCount = expandableListView.getCount();

            for (int i = 0; i < groupCount - 1; i++)
              {
                expandableListView.collapseGroup(i);
              }

            expandableListView.expandGroup(groupCount - 1);

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxcRi8ACgkQeDweFqgUGxdVJACfQHBr/CU/NZThhzjR6ycAHSKS
yFMAn1UFAsg4eMMxP1zqZTSniix1gP4w
=7WLX
-----END PGP SIGNATURE-----

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

Reply via email to