Can't get proper layout with “fill_parent”

前端 未结 4 469
一向
一向 2020-12-31 14:26

I\'m trying to create this simple layout in Android.

\"enter

A

4条回答
  •  臣服心动
    2020-12-31 14:56

    fill_parent means "be as big as the parent," not "use the remaining empty space." Instead of fill_parent, just use android:layout_width="0dip" and android:layout_weight="1".

提交回复
热议问题