现在它垂直分割......我希望它水平分割。我看其他人,说他们的削减水平和我不能告诉区别...如何在屏幕上水平分割屏幕
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="top"
android:layout_weight="1" >
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:layout_weight="1" >
</LinearLayout>
</LinearLayout>
为什么改变方向垂直做到这一点...? – cj1098
您想将画面分成一个线性向下,因此可以将方向设置为垂直 –