Adjust width to half screen

前端 未结 5 1987
再見小時候
再見小時候 2021-01-05 05:27

I came across this link :

Assign width to half available screen width declaratively

How to do the same in relative layout? Here\'s the code: Trying linea

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 06:06

    In addition to urSus's answer, it's better to use a Space class instead of View:

       
    

提交回复
热议问题