match_parent property for children in a RelativeLayout

前端 未结 5 1141
迷失自我
迷失自我 2020-12-28 14:15

In short, is it possible to tell a child in a RelativeLayout to always match the height of that RelativeLayout regardless

5条回答
  •  别那么骄傲
    2020-12-28 15:21

    Simply put your main RelativeLayout inside a LinearLayout, then the calculation of child Views height will be correct . I had the same problem and it worked for me.

提交回复
热议问题