<android.support.design.widget.CoordinatorLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:elevation="0dp"
        android:theme="@style/AppTheme.AppBarOverlay">
    </android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>

只需要在布局的AppBarLayout中加入app:elevation="0dp"

下面2张图分别是加上前和加上后的效果图:

去除使用CoordinatorLayout 和 AppBarLayout布局,上滑到顶部时的阴影去除使用CoordinatorLayout 和 AppBarLayout布局,上滑到顶部时的阴影

相关文章:

  • 2022-01-08
  • 2021-10-11
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-08-27
  • 2022-12-23
  • 2022-01-25
相关资源
相似解决方案