Tuesday, June 28, 2011

[android-developers] Re: Expandable List and GetChildCount

There is no easy way...  using your own group-indicator drawable and specifying the 'state_empty=true' doesn't seem to work too well, but I could have made some mistakes...

This is what I did: 
Add a onGroupItemClickListener to your expandable list-view and return true in the onGroupClick method if the item you clicked on has no children.
This will not hide the group-indicator, but it will prevent the user from opening an empty group.



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