ListView点响应击事件
OnItemClickListener
1 lvList.setOnItemClickListener(new OnItemClickListener() { 2 3 @Override 4 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { 5 mCurrentPostion = position;// 记录被点击的位置 6 mAdapter.notifyDataSetChanged();// 更新getView方法,处理被点击的位置 7 8 setCurrentMenuDetailPager(position);// 更新展示界面 9 } 10 });