茴香豆的第五种写法---取消ExpandableListView系统自带图标

来源:互联网 发布:滑滑app软件下载 编辑:程序博客网 时间:2024/06/15 15:24

利用ExpandableListView实现二级菜单的时候,在每个二级菜单前面都有一个箭头
但是这个箭头不太美观,所以去掉箭头图标,方法如下:

<ExpandableListView     android:id="@+id/elistview"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    android:groupIndicator="@null" />


核心语句: android:groupIndicator="@null"
这样就去掉了系统自带的图标

原创粉丝点击