展会信息港展会大全

android ExpandableListView图标的自定义
来源:互联网   发布日期:2015-11-26 11:15:08   浏览:2319次  

导读:在ExpandableListView的xml文件内设置android:groupIndicator属性自定义一个xml seletoritem android:state_expanded=true android:drawable=@drawable/icon_ex_down/item android:state_expanded=f......

在ExpandableListView的xml文件内设置

android:groupIndicator属性

自定义一个xml seletor

<item android:state_expanded="true"

android:drawable="@drawable/icon_ex_down"/>

<item android:state_expanded="false"

android:drawable="@drawable/icon_ex_right"/>

如果groupview布局背景也想自定义

请使用RelativeLayout,使用LinearLayout会遮住图标

赞助本站

人工智能实验室

相关热词: ExpandableListView 图标

相关内容
AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港