Child of RelativeLayout is not filling the height of the RelativeLayout

后端 未结 8 1799
终归单人心
终归单人心 2021-01-02 01:04

I have a ListView which gets populated with RelativeLayouts. The content of these RelativeLayouts can change and thus change their height respectively. On each RelativeLayou

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 01:23

    Had the same pesky problem which by the way makes no sense. What worked for me in the end was changing the android:layout_height in RelativeLayout tag to fill_parent like this

    hope this helps

提交回复
热议问题