I want to make an activity that contains a viewpager and listview below it which you can scroll them both .. like these apps ... anyone can help
相关问题
- It returns null when I use getView() to get root V
- Can a ListView have two or more different types of
- Fragment transaction with viewpager returns blank
- How to Pass JSON Array using JSON Object
- android Recyclerview Layoutmanager's onLayoutC
相关文章
- PageCurl animations on ViewPager transitions?
- ViewPager first fragment shown is always wrong wit
- How to handle back button using view pager?
- Android Done button instead of Next
- After maintaining collapse/expand state for N-leve
- Filtering list of apps in custom baseadapter
- Expanding in Context in a ListView - Android
- How to display video in VideoView in the center of
I would use a
ViewPager
in combination with aTitle Strip
.On the android developers site you have a good tutorial for this.
You need the following objects:
FragmentActivity
FragmentStatePagerAdapter
(controlls your current view and swipe-movements)Fragment
(inonCreateView()
you can declare your Layout of the SwipeViews)Just try the tutorial and let me know if you have more question to certain issues.
UPDAT 2013-08-26
Ok, next time you should try to precise your question and if you have code than show it. So the SO community can give you a more precise and fast help :)
As you describe in your comment you can use a
ScrollView
instead of aLinearLayout
. Than you have two options to make your listView scrolling inside a scrollView:Well I could do it with some way by measuring the height of the listView and adding the listview and the view pager into scroll view here's the sample I've made
and here's how I measure the listView height
and here's my layout