开发者

Expandable list-view android, set custom drawables

开发者 https://www.devze.com 2023-03-16 10:42 出处:网络
ok, i just ha开发者_StackOverflow社区ve a simple question here. how can i change the group arrow on expandable listview with another drawables?

ok, i just ha开发者_StackOverflow社区ve a simple question here. how can i change the group arrow on expandable listview with another drawables? y know, i'm gonna use + and - for my expandable group list...

Thanks


Please check this link more helpful to you


OR


<ExpandableListView
    android:id="@+id/android:list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:groupIndicator="@drawable/group_indicator" >

group_indicator.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_empty="true" android:drawable="@drawable/arrowright"></item>
    <item android:state_expanded="true" android:drawable="@drawable/arrowdown"></item>
    <item android:drawable="@drawable/arrowright"></item>
</selector>
0

精彩评论

暂无评论...
验证码 换一张
取 消