Listview禁止滑動

心鑫發表於2013-09-16

思路自: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;



相關文章