ExpandableListActivity实现展开或隐藏子项
来源:互联网 发布:淘宝店铺重新认证 编辑:程序博客网 时间:2024/05/29 19:45
ExpandableListActivity可以展开或隐藏子项。用getExpandableListView().setIndicatorBounds(left, right)可以用来改变指示图标的位置,在getGroupView可以重写成你想要的显示效果,本程序实现在父项实现图文混排的效果。
shop_search.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout android:id="@+id/dyna_list"
android:layout_width="40dip" android:layout_height="40dip"
android:layout_marginLeft="5dip" android:orientation="horizontal">
<ImageView android:id="@+id/simple_list_item_icon_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
</ImageView>
</LinearLayout>
<TextView android:id="@+id/simple_list_item_icon_tv"
android:layout_width="fill_parent" android:layout_height="40dip"
android:textColor="@drawable/black" android:textSize="12sp"
android:paddingLeft="8dip" android:gravity ="center_vertical"
android:singleLine="false" android:ellipsize="marquee">
</TextView>
</LinearLayout>
- ExpandableListActivity实现展开或隐藏子项
- Android ExpandableListActivity实现可展开的activity
- 使用ExpandableListActivity实现可展开的Activity
- juqery 显示与隐藏 子项, 类似展开收缩
- jqury 实现点击一个菜单,其他展开的子菜单隐藏
- JS实现鼠标点击展开或隐藏表格行的方法
- 可展开的Activity ExpandableListActivity的使用
- QTreeWidget隐藏去掉或更改item项前的展开折叠三角图标
- ExpandableListActivity的基本实现
- javascript实现文字隐藏 展开收起
- js实现评论框展开和隐藏
- Android 禁止ExpandableListView组的点击展开或隐藏事件,让所有列表都展开
- ExpandableListActivity
- ExpandableListActivity
- ExpandableListActivity
- ExpandableListActivity
- 怎么实现 ExpandableListActivity with checkbox
- [Android]expandablelistview默认展开以及记录已展开或关闭的子布局
- 数据绑定
- fflush函数小结及使用误区
- 翻译]架构师应该知道的97件事_04以沟通为中心,兼顾简明清晰的表达方式和开明的领导作风
- 防止sql注入的办法
- 必须要说的HttpProxy和ScriptTagProxy
- ExpandableListActivity实现展开或隐藏子项
- android 3G pppd 调试记录。
- html
- Solaris10下Ftp Server的配置与应用
- ORACLE 禁用/启用外键和触发器
- linux pppd 3g 拨号记录
- linux远程桌面[vnc]
- asp.net Repeater控件用法----一列数据在Repeater中每行显示固定记录方法
- ListView使用总结1