解决 ExpandableListView .onChildItemLongClick()
来源:互联网 发布:c语言计算符号函数 编辑:程序博客网 时间:2024/06/06 10:51
关于解决ExpandableListView无ChildItem长按事件的问题
<pre name="code" class="java">expandableListView.setOnItemLongClickListener(new OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> parent, View view,int position, long id) { int npos = expandableListView.pointToPosition((int)view.getX(), (int)view.getY()); if (npos != AdapterView.INVALID_POSITION) { long pos = expandableListView.getExpandableListPosition(npos); int childPos = ExpandableListView.getPackedPositionChild(pos);int groupPos = ExpandableListView.getPackedPositionGroup(pos); if(childPos == AdapterView.INVALID_POSITION){//group long click }else{// child long click } } return true;} });
0 0
- 解决 ExpandableListView .onChildItemLongClick()
- ExpandableListView OnChildClickListener 失效解决
- ExpandableListView
- ExpandableListView
- ExpandableListView
- ExpandableListView
- ExpandableListView
- ExpandableListView
- expandableListView
- ExpandableListView
- expandablelistview
- ExpandableListview
- ExpandableListView
- ExpandableListView
- ExpandableListView
- Expandablelistview
- ExpandableListView
- ExpandableListView
- 七款Debug工具推荐:iOS开发必备的调试利器
- 数据库case,分页
- 黑马程序员_java概述
- shell学习十七天----awk命令
- $(document).ready() 与window.onload的区别
- 解决 ExpandableListView .onChildItemLongClick()
- 精通HTML表格的使用
- OBD2 Software for ELM327
- 数据的类型
- java读取properties配置文件
- Linux——文件拷贝
- 在VS2010上使用C#调用非托管C++生成的DLL文件(图文讲解)
- 遍历网格
- Linux防火墙的关闭和开启