I struggled with this as I see others have done. I ended up getting around 
it by doing this:

Defining a custom drawable for setGroupIndicator():

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>
    <item android:drawable="@android:color/transparent" 
android:state_expanded="true" android:state_empty="true" />
    <item android:drawable="@drawable/expander_ic_maximized" 
android:state_expanded="true"/>
    <item android:drawable="@drawable/expander_ic_minimized"/>
</selector>

Those expander_ic_ images are from the Android source. Now all I have to do 
is set the empty group item as expanded, even they it doesn't have 
children, and the indicator is gone.

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

Reply via email to