Is there any way to create horizontal list view with header. I think Horizontal list view can be created via HorizontalScrollView component. As displayed in the tasks app (https://i.stack.imgur.com/qWZPh.jpg) I’ve provided, both Grocery List and Work headers can be viewed in being in the grocery list. When I’m moving from Grocery List to Work, the header should move seamlessly as well. How to animate headers like that (so that they get placed while we are scrolling through lists)?
Thanks
here is the link for tasks free app: https://i.stack.imgur.com/qWZPh.jpg
TasksApp (the screenshot you posted, and actually I am using it everyday) uses ViewPager with PagerTitleStrip.If you use Eclipse, there is a default option that creates such activity.
The following XML code is automatically generated by Eclipse when I select
Swipe Views + Title Strip.Also try to check those:
http://developer.android.com/reference/android/support/v4/view/ViewPager.html
http://developer.android.com/reference/android/support/v4/view/PagerTitleStrip.html
ADDED
Automatically generated
MainActivity.java