android studio toolbar遮挡住下面控件内容

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

 app:layout_behavior="@string/appbar_scrolling_view_behavior"

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

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

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

猜你喜欢

转载自www.cnblogs.com/adyyzjb/p/9334481.html