Open zhouzl18 opened 5 years ago
你好,能和AppbarLayout做一下适配吗? 我的布局是这样的: <android.support.design.widget.CoordinatorLayout android:id="@+id/index_coordinator" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout android:id="@+id/index_appbar" android:layout_width="match_parent" android:layout_height="486dp" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android:fitsSystemWindows="true"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/index_collapsing_toolbar" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_scrollFlags="scroll|exitUntilCollapsed" android:fitsSystemWindows="true" app:contentScrim="@color/colorPrimary" app:statusBarScrim="@color/colorPrimary" app:expandedTitleMarginStart="48dp" app:expandedTitleMarginEnd="64dp"> <com.bigkoo.convenientbanner.ConvenientBanner android:id="@+id/cb_index_banner_container" android:layout_width="0dp" android:layout_height="0dp" app:canLoop="true" app:layout_constraintDimensionRatio="h, 1242:1378" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> <android.support.v7.widget.Toolbar android:id="@+id/my_toolbar" android:layout_width="match_parent" android:layout_height="@dimen/toolbar_height" app:contentInsetStart="8dp" app:contentInsetEnd="8dp" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" app:layout_collapseMode="pin" /> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> </android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
在ConvenientBanner向上滑动时,滑动不是很流畅,但是在NestedScrollView上滑动就很流畅
你好,能和AppbarLayout做一下适配吗? 我的布局是这样的: <android.support.design.widget.CoordinatorLayout android:id="@+id/index_coordinator" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true">
</android.support.design.widget.CoordinatorLayout>
在ConvenientBanner向上滑动时,滑动不是很流畅,但是在NestedScrollView上滑动就很流畅