Add textview to layout?

前端 未结 4 549
孤城傲影
孤城傲影 2021-01-27 13:08

I cant put a textview above my buttons without having my buttons move...How can I fix this?

Been stuck on this for 4 hours...Which is sad because I\'m t

4条回答
  •  孤独总比滥情好
    2021-01-27 13:18

    A simple and quick solution could be to use two layouts: keep the RelativeLayout and embed it in a vertical LinearLayout. Then you can just add the TextView to the LinearLayout before the RelativeLayout.

    Caution: using multiple layers of Layouts can hurt performance, so don't overdo it. Two layouts shouldn't hurt though.

提交回复
热议问题