1

I want to change Exapandable listview group indicator. So I have tried like below:

<ExpandableListView 
android:layout_width="match_parent" android:layout_height="wrap_content"
android:cacheColorHint="#00000000"      
android:layout_marginTop="5dp"
android:groupIndicator="@drawable/expandablelist_selector"/>

expandablelist_selector.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item 
android:drawable="@drawable/minus"
android:state_expanded="true" ></item>
<item android:drawable="@drawable/plus"></item>
</selector>

I have used 9 patch images. But the indicator is coming in top not in center. Please help me how to center group indicator icon/image.

[Edit]

Below is the dummy image reference:

http://tinypic.com/view.php?pic=o5oxkx&s=5#.UqAcb9IW13N

user3021918
  • 195
  • 1
  • 5
  • 11

0 Answers0