¡@

Home 

2014/10/16 ¤W¤È 08:26:44

android Programming Glossary: touchsource

Android. Scrolling 2 listviews together

http://stackoverflow.com/questions/12342419/android-scrolling-2-listviews-together

or anything else. First we'll need some class variables ListView listView ListView listView2 View clickSource View touchSource int offset 0 Every method that I add to listView will be almost identical for listView2 the only difference is that listView2.. listView.setOnTouchListener new OnTouchListener @Override public boolean onTouch View v MotionEvent event if touchSource null touchSource v if v touchSource listView2.dispatchTouchEvent event if event.getAction MotionEvent.ACTION_UP clickSource.. new OnTouchListener @Override public boolean onTouch View v MotionEvent event if touchSource null touchSource v if v touchSource listView2.dispatchTouchEvent event if event.getAction MotionEvent.ACTION_UP clickSource v touchSource..