To have different icons showing based on the the "state" of the group, such as "expanded" or "collapse". You need to create an xml file in res/drawable to indicate such behavior and 2 different icons for each state. For example, create an XML called "expandable_icon.xml" an icon called expanded.9.png and another called collapsed.9.png in res/ drawable.
The content of XML should look something like this. <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_expanded="true" android:drawable="@drawable/expanded" /> <item android:drawable="@drawable/collapsed" /> </selector> and in your code, you should do the following. Drawable groupIndicator = getResources.getDrawable(R.drawable.expandable_icon); expandableListView.setGroupIndicator(groupIndicator); Makas On Mar 16, 5:28 am, Ali Chousein <ali.chous...@gmail.com> wrote: > Hi Maka, > > Thank you for your message. Stretching is not the main problem though. > As I wrote above, changing the icon based on the state of a group is > the main problem. Anyway, finally I could find some time to sit down > to see this problem again. I'll investigate it for some more time. > Hope to come up with a decent solution... > > -Ali -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en