开发者

How to display default group icons in ExpandableListView?

I'm finding lots of discussion about how to replace the default group icons in an ExpandableListView, but I'm not coming up with anything on how to get the defaults to display in the first place.

The defaults (as shown here, if that's what they look like [new to Android, this is my first ExpandableListView]开发者_StackOverflow) will be fine with me, if I can get them to show.

How to display default group icons in ExpandableListView?

I'm using the sample code from the article; I have no need for the embedded CheckBoxes at this time.

Any assistance is appreciated.

--EDIT--

Also, does anyone have any theories as to why the default icons show in the article (again, if that's what they look like--if someone could confirm that'd be great) but don't show for me?


If you are using custom layouts for your group rows the default icons are overridden by your layout. You'll need to add them to your layout in order for them to display.


you can changed default icon with your own icon as below.

android:groupIndicator="@drawable/image"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜