@@ -0,0 +1,581 @@
+package com.ocypode.component.view.listview;%0A%0Aimport android.content.Context;%0Aimport android.util.AttributeSet;%0Aimport android.view.MotionEvent;%0Aimport android.widget.ListView;%0A%0Apublic class LockableListView extends ListView%7B%0A%09private boolean isLocked = false;%0A%09%0A%09public LockableListView(Context context, AttributeSet attrs) %7B%0A%09%09super(context, attrs);%0A%0A%09%7D%0A%0A%09public void setLock(boolean lock)%7B%0A%09%09isLocked = lock;%0A%09%7D%0A%09%0A%09@Override%0A%09public boolean onInterceptTouchEvent(MotionEvent ev) %7B%0A%09%09if(isLocked)%7B%0A%09%09%09return false;%0A%09%09%7Delse%7B%0A%09%09%09return super.onInterceptTouchEvent(ev);%09%09%09%0A%09%09%7D%0A%09%7D%0A%7D%0A

add LockableListView