问问题
615 次
1 回答
1
尝试更换这个
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:background="#E0DFDE">
</android.support.v4.view.ViewPager>
通过这个
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:background="#E0DFDE">
<FrameLayout
android:id="@+id/banner_layout"
android:layout_width="match_parent"
android:layout_height="50dp">
<!-- put your banner here -->
</FrameLayout>
</LinearLayout>
于 2017-02-12T13:11:36.650 回答