Reputation: 11782
i am trying to add a scroll screen layout in my app just similar to main screen scroll
of any android mobile. How can i Add such a screen in my activity.
Check the image below.
Upvotes: 2
Views: 231
Reputation: 72623
You can do this by using ViewPager. The ViewPager is also included in the Support library, so you can use it on HC< . It works excactly like this.
There are also custom implementations of the ViewPager, which increases its possibillities e.g.: The ViewPager from Jake Wharton.
Upvotes: 5
Reputation: 427
Use Jack Wharton's ViewPagerIndicator, it should work for you.
https://github.com/JakeWharton/Android-ViewPagerIndicator/
Upvotes: 0
Reputation: 128438
You can either go with Android ViewFlow or ViewPagerIndicator
Upvotes: 0
Reputation: 687
This can be done by using "SwipeView"
A SwipeView is an Android UI view similar to the homescreens. You have several similar panes of content that you access by swiping left and right.
Upvotes: 1