Android Vertical scrolling for ListView inside Horizontal scrollView -


i have custom arrayadapter listview inside horizontal scrollview.the horizontal scrolling works fine vertical scrolling had hacks. want know if idea since listview optimized vertical scrolling.? there way scroll without hack ?

the hack capture touchevent scrollview(parent class) , propagate touchevent listview.

scrollview.setontouchlistener(new ontouchlistener(){          @override     public boolean ontouch(view arg0, motionevent arg1) {             lv.setsmoothscrollbarenabled(true);             lv.dispatchtouchevent(arg1);         } }); 

this causes scrolling happen , things work. want know if there more things need take in account.

thanks

your horizontal scroll view in parent class, touch event recognized scroll view , not list view. if want list view scroll, way did correct.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -