【发布时间】:2014-11-21 05:58:43
【问题描述】:
帮助我处理 XML 布局。
我在活动上有三个LinearLayout,所有LinearLayout都有垂直位置(从上到下)
- 第一个 LinearLayout 有 android:layout_height="30px", android:layout_width="fill_parent"
- 第二个LinearLayout有android:layout_height="fill_parent", android:layout_width="fill_parent"
- 第三个LinearLayout有android:layout_height="30px",android:layout_width="fill_parent"
但是当第二个 LinearLayout 设置为 fill_parent 时,它会填满全屏(从第一个 Layout 到屏幕底部),而第三个 LinearLayout 无法显示!
我需要如何填充第二个布局?
帮帮我
【问题讨论】:
-
不要使用 px 使用 dp
标签: android android-layout layout android-linearlayout fill-parent