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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -