I am developing a sample application with TabHost, which is containing HorizontalScrollView. Here is my problem:
- I have more than 10 tabs, when i click on any of the tabs it should set the gravity as center? How i can over come this issue.
Thanks in advance!!!
This will involve some calculation.
Bsically you will need to scroll to the position to center a element.
Where the
But even with this method, you will not be able to center the end elements as scrollviews will not scroll beyond its bounds.