private void toogleListView ( View v ) { if ( mLastViewTouchId != v . getId ( ) ) { if ( mLastViewTouchId == mListViewLeft . getId ( ) ) { isLeftListEnabled = true ; isRightListEnabled = false ; } else { isLeftListEnabled = false ; isRightListEnabled = true ; } } }
Each time we touch the opposite ListView than the last one we have selected we need to activate it as the enable one