Code example for ListView

Methods: setOnTouchListenersetOnScrollListener

0
		rightListView.setOnScrollListener(this);
	} 
 
	public void desynchronize() { 
		leftListView.setOnTouchListener(null);
		rightListView.setOnTouchListener(null);
		leftListView.setOnScrollListener(null);
		rightListView.setOnScrollListener(null);
	} 
 
	/** 
	 * Passing the touch event to the opposite list 
	 */ 
	@Override 
	public boolean onTouch(View v, MotionEvent event) {
		if (v == leftListView && !dispatched) {
			dispatched = true;
			rightListView.dispatchTouchEvent(event);
		} else if (v == rightListView && !dispatched) {
			dispatched = true;
Stop searching for code, let great code find you!  Add Codota to your java IDE