自定义可扩展列表视图
我正在使用 ExpandableListView,其中我想在 ListView 中显示项目的以下属性
- 灰色图像作为默认背景
- 单击项目时的蓝色图像
- 展开项目时的白色图像
我拥有所有图像,我也能够实现前两件事,但我无法理解当特定的孩子展开时如何改变图像。任何帮助将不胜感激,提前致谢。
I am working with ExpandableListView in which I want to show following properties for the item in ListView
- Grey image as a default background
- Blue image when item is clicked
- White image when item is expanded
I have all the images with me, also I am able to achieve the first two things, but I am not able to understand how to change the image when that particular child is expanded. Any help will be appreciated, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,通过一些 R & DI 成功了。我所做的是从 xml 设置前两件事,最后一件事是我在 getGroupView() 中完成的
,如果有人有任何其他答案,请告诉我:)
Well, by some R & D I got it working. What I did is set first two things from xml and for the last thing I did this in getGroupView()
if some one has any other answer, please let me know :)