RelativeLayout weight

前端 未结 4 557
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 23:25

In a layout resource XML, I have 3 RelativeLayout(s) which are inside a main RelativeLayout. The view will be shown vertically. These 3 RelativeLayout() are set next to each

4条回答
  •  萌比男神i
    2020-12-03 00:09

    Solution is very simple. I have been looking for weight distribution in relative layout.

    It's a small trick for all these kind situations.

    Use LinearLayout with android:orientation="horizontal"

提交回复
热议问题