只需要在该控件布局(content_***.xml)加入:

 app:layout_behavior="@string/appbar_scrolling_view_behavior"

 加入之前,确保是添加了:

 xmlns:app="http://schemas.android.com/apk/res-auto"

 因为如果不添加上面代码 app:无法识别

相关文章:

  • 2021-09-27
  • 2021-07-23
  • 2021-08-16
  • 2021-08-20
  • 2022-12-23
  • 2021-05-23
  • 2021-12-15
  • 2021-05-05
猜你喜欢
  • 2022-01-08
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案