< p >在活动布局中,
ViewPager
是否必须是唯一存在的对象?我正在尝试实现这样的功能:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/reader_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/page_viewer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Gallery
android:id="@+id/miniatures_gallery"
android:layout_width="match_parent"
android:layout_height="wrap_content" /></LinearLayout>
我在页面顶部有一个大的分页滚动条(已经存在),下面还有一个较小的图库滚动条。但是现在只显示了分页滚动条,没有显示图库滚动条。你有什么建议吗?