ExpandableListView箭头右边显示方法
来源:互联网 发布:私有密码算法范畴 编辑:程序博客网 时间:2024/04/30 05:53
1首先 ExpandableListView elistview;
elistview.setGroupIndicator(null);//将控件默认的左边箭头去掉,
2在 自定义的继承自BaseExpandableListAdapter的adapter中有一个方法
/**
* 父类view
*/
@Override
public View getGroupView(int groupPosition, boolean isExpanded,
View convertView, ViewGroup parent) {
Log.i("zhaoxiong","parent view");
LinearLayout parentLayout=(LinearLayout) View.inflate(context, R.layout.wowocoupons_parent_item, null);
TextView parentTextView=(TextView) parentLayout.findViewById(R.id.parentitem);
parentTextView.setText(parentlist.get(groupPosition));
ImageView parentImageViw=(ImageView) parentLayout.findViewById(R.id.arrow);
//判断isExpanded就可以控制是按下还是关闭,同时更换图片
if(isExpanded){
parentImageViw.setBackgroundResource(R.drawable.arrow_down);
}else{
parentImageViw.setBackgroundResource(R.drawable.arrow_up);
}
return parentLayout;
}
- ExpandableListView箭头右边显示方法
- 设置ExpandableListView右边的箭头
- 设置ExpandableListView右边的箭头
- 设置ExpandableListView右边的箭头
- 设置ExpandableListView右边的箭头
- 设置ExpandableListView右边的箭头
- ExpandableListView替换右边箭头的实现
- 巧设置ExpandableListView右边的箭头
- TextView右边箭头的显示
- 【Tech-Android-View】巧设置ExpandableListView右边的箭头
- 替换ExpandableListView右边箭头Group Indicator(小图标)
- ExpandableListView使用,点击条目请求网络数据,箭头在右边
- ExpandableListView 功能界面布局探究之一 ( 更换ExpandableListView右边的箭头(小图标))
- ExpandableListView 功能界面布局探究之一 ( 更换ExpandableListView右边的箭头(小图标))
- tabel 右边箭头样式
- ExpandableListView 箭头靠右
- ExpandableListView的箭头问题
- 解决CMFCMenuButton无法显示右边箭头以及多字节编码下堆破坏的问题
- canvas.save() canvas.restore() 作用
- 关于ssl通道的建立服务器端keystore的操作
- 网络应用分析框架
- 【C++】静态成员函数小结
- Eclipse 导入项目乱码问题
- ExpandableListView箭头右边显示方法
- 位运算的一些基本操作
- vi常用快捷键
- Fragment从Activity获取数据(Activity一次性获取数据,然后分别传给各个fragment)
- 使用libvirt创建和管理KVM虚拟机
- muduo源码分析:ThreadLocalSigleton类
- WindowManager.LayoutParams.TYPE_SYSTEM_ALERT 浮动窗适配问题
- ofbiz框架入门例子详解-------删除篇
- 稻盛和夫自述:日航如何起死回生