How to divide layout to 3 parts?

前端 未结 2 1222
心在旅途
心在旅途 2021-01-13 07:15

I\'m trying to divide my layout to 3 equal rows, trying to use LinearLayout and weights, but it doesn\'t work, it doesn\'t make any change:



        
2条回答
  •  再見小時候
    2021-01-13 07:55

    At first, I didn't realise, that problem was not there. I had ScrollView and it made these layouts not work with weights. I added android:fillViewport="true" to ScrollView and it got fixed.

提交回复
热议问题