Layout Weights do not work inside a ScrollView

后端 未结 5 930
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 21:22

I want to assign layout weights to several items within a LinearLayout inside of a ScrollView. However, the ScrollView ignores the

5条回答
  •  甜味超标
    2020-11-29 21:49

    In my experience, fillviewport=true works bit strange.

    I solved this problem by wrapping LinearLayout with another Layout like FrameLayout.

    I hope this helps.

提交回复
热议问题