我有一个NestedScrollView内FragmeLayout的高度,的FrameLayout不匹配NestedScrollView
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000">
但FrameLayout里不填充NestedScrollView的高度。我该如何解决这个问题?
我觉得在框架布局 –
设定比重=中心或其他做'机器人:layout_gravity = “中心”'或'机器人:layout_gravity = “中心| fill_vertical”'似乎并没有工作 – learner
'机器人:fillViewport =“true”'选中此项将其添加到'android.support.v4.widget.NestedScrollView'中 –