PreferenceFragmentCompat
的 onCreateView
里面引用的布局资源 R.layout.preference_list_fragment
根布局是 LinearLayout
,android:orientation
是 vertical
。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="NewApi"
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="match_parent" >
<FrameLayout
android: