FrameLayout does not match the height of NestedScrollView

后端 未结 1 1554
北荒
北荒 2021-02-20 09:29

I have a FrameLayout inside a NestedScrollView, as



        
相关标签:
1条回答
  • 2021-02-20 10:06

    Check This Solution
    Use fillViewport="true" this attribute causes the scroll view’s child to expand to the height of the ScrollView if needed. When the child is taller than the ScrollView, the attribute has no effect.

     <android.support.v4.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
          android:fillViewport="true"
                app:layout_behavior="@string/appbar_scrolling_view_behavior">
    
    0 讨论(0)
提交回复
热议问题