I want to change the ExpandableListView
group indicator to right with padding.
I used custom adapter to load data to ExpandableListView
.
This is my ExpandableListView
xml.
<ExpandableListView
android:id="@+id/Ex_offers"
android:layout_width="250dp"
android:layout_height="400dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:childDivider="#00000000"
android:groupIndicator="@drawable/settings_selector"
android:listSelector="@android:color/transparent">
</ExpandableListView>
This is GroupView
xml
<TextView
android:id="@+id/lblListHeadertwo"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/transperant_bar"
android:fontFamily="Lato"
android:paddingLeft="15dp"
android:textColor="#daac56"
android:textStyle="bold"
android:textSize="17sp"
android:paddingTop="8dp" />
This is ChildView xml
<TextView
android:id="@+id/text_offers"
android:layout_width="300dp"
android:layout_height="20dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@drawable/transperant_bar"
android:paddingLeft="?android:attr/expandableListPreferredChildPaddingLeft"
android:textColor="#daac56"
android:textSize="14sp"/>
<ImageView
android:id="@+id/img"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginLeft="12dp"/>
This is the output image, I want to set margin to this indicator.