SHARE
TWEET

Untitled

a guest Feb 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 09-13 18:20:50.183: ERROR/AndroidRuntime(300): java.lang.ArrayIndexOutOfBoundsException
  2. 09-13 18:20:50.183: ERROR/AndroidRuntime(300):     at android.view.MotionEvent.getY(MotionEvent.java:792)
  3. 09-13 18:20:50.183: ERROR/AndroidRuntime(300):     at android.widget.AbsListView.onTouchEvent(AbsListView.java:2040)
  4.    
  5. public boolean onTouch(View view, MotionEvent event) {
  6.  
  7.     if(event.getAction() == MotionEvent.ACTION_DOWN && !requestedFocus) {
  8.         view.requestFocus();
  9.         requestedFocus = true;
  10.     } else if (event.getAction() == MotionEvent.ACTION_UP) {
  11.         requestedFocus = false;
  12.     }
  13.  
  14.     if(view == leftListView && view.isFocused()) {
  15.         rightListView.dispatchTouchEvent(event);
  16.     } else if(view == rightListView && view.isFocused()) {
  17.         leftListView.dispatchTouchEvent(event);
  18.     }
  19.     return false;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top