现在的位置: 首页 > 综合 > 正文

Listview禁止滑动

2013年12月02日 ⁄ 综合 ⁄ 共 320字 ⁄ 字号 评论关闭

思路自:http://bbs.csdn.net/topics/390238861

class MyOnTouchListner implements OnTouchListener{

		@Override
		public boolean onTouch(View v, MotionEvent event) {
			switch (event.getAction()) {
			case MotionEvent.ACTION_MOVE:
				return true;
			default:
				break;
			}
			return false;
		}
		
	}
lv.setOnTouchListener(new MyOnTouchListner());

case MotionEvent.ACTION_MOVE: return true;

抱歉!评论已关闭.