Can I use layout_weight to position a RelativeLayout?

后端 未结 3 1709
抹茶落季
抹茶落季 2021-02-13 13:37

I\'ve been trying all day to get this to work and i think that I can use RelativeLayout

android:layout_weight=\"0.3\"  

to pl

3条回答
  •  甜味超标
    2021-02-13 14:18

    Since this xml file doesn't give error it doesn't mean that you can use these attributes (weight, orientation associated to LinearLayout) with RelativeLayout. Please see the documentation for RelativeLayout first.

提交回复
热议问题