android: relative layout two buttons occupy all the available horizontal space

前端 未结 6 1186
不知归路
不知归路 2021-02-13 11:06

i have a relative layout and i have two buttons in it with texts \"hello\" and \"world\" respectively. i want these two buttons to lie adjacent to each other and equally occupy

6条回答
  •  庸人自扰
    2021-02-13 12:04

      
    
        

    Check

    Note:

    • Even if the android:layout_width was fill_parent the result will not change.
    • What actually matters here is android:layout_alignParentRight and android:layout_alignParentLeft

提交回复
热议问题