我正在使用这个库:
https://github.com/florent37/MaterialViewPager
我的ViewPager看起来像:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.florent37.materialviewpager.MaterialViewPager
android:id="@+id/materialViewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadeScrollbars="true"
app:viewpager_color="@color/colorPrimary"
app:viewpager_disableToolbar="false"
app:viewpager_displayToolbarWhenSwipe="false"
app:viewpager_enableToolbarElevation="true"
app:viewpager_headerHeight="200dp"
app:viewpager_hideToolbarAndTitle="true"
app:viewpager_pagerTitleStrip="@layout/material_view_pager_pagertitlestrip_newstand"
app:viewpager_transparentToolbar="false" />
</android.support.v4.widget.DrawerLayout>
当片段可见时,它看起来如下所示:
在: http://img5.fotos-hochladen.net/uploads/beforehj03bneut2.png
当我再次向上滚动时,它看起来像http://img5.fotos-hochladen.net/uploads/after5qc2bgdrij.png
如何解决此滚动问题?