Search code examples
androidlistviewscrollview

How to use two scroll view in one Activity?


I am developing the app that needs the two scrollview which is like follow explained....

1) First scrollview is for the whole activity. i am giving the more content with the three inflator in sigle activity with the different views. so it displays only 2 view therefor i have made the scrollable to view all the content.

2) Another one in the same activity i have the tabs for showing the user activity in one tab i am displaying the list view and another tab i am displaying some kinda things which is more then the screen size thats why i have given the scolling to that activity also.But here in my case both are not working (the list view and the scrollview).

what i can do for that?


Solution

  • You can achieve this with a ViewPager, if I understand ok.

    You can check this lib:

    ViewPagerIndicator

    Hope this help!