I have horizontal scrolling pages as in the android market (ViewPager).
My problem is that i want to have a Horizontal Scrolling View in them with some images?Is that possible??
As now,i m getting a little scroll in my view and then the whole page is scrolling.
Thanks for your time!
I've reworked a solution and finally found a very simple way to implement it the same way it's been done on GMail: the HorizontalScrollView will scroll until it reaches one of its edges. Then on next scrolling, the whole page will scroll.
All it required was overriding the HorizontalScrollView to check scroll direction vs edges and also make sure content can actually scroll.
You need to extend the
HorizontalScrollView
and intercept touch events. What worked for me was the following sample:Then, instead of using the
HorizontalScrollView
in your layout XML, you need to use this custom view.What helped me get to this solution is this post
In the above case, scrollVIew is applicable for only the two images not for the edittext.
In other case:
Here scrollView is applicable for only listView.