fragment页面上方出现条状空白的问题
在fragment基于的activity的xml文件里
经证实是这行的问题:
android:paddingTop="?attr/actionBarSize"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize">
<!--把最后一行去掉!!!-->