Android layout android中的布局问题
从中,我得到了前三张垂直的图像。。 但我希望最后两个图像水平地放在一行中。Android layout android中的布局问题,android-layout,Android Layout,从中,我得到了前三张垂直的图像。。 但我希望最后两个图像水平地放在一行中。 我不知道如何获取。在主线性布局中创建另一个线性布局。并在第一个线性布局中添加前三个图像,在第二个线性布局中添加后两个图像。第二个线性布局的方向将是水平的 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:or
我不知道如何获取。在主线性布局中创建另一个线性布局。并在第一个线性布局中添加前三个图像,在第二个线性布局中添加后两个图像。第二个线性布局的方向将是水平的
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background = "@drawable/second"
>
<LinearLayout
android:layout_width="match_parent"
android:id="@+id/LinearLayout1"
android:layout_height="match_parent"
android:layout_gravity="center"
android:baselineAligned="false" android:orientation="vertical"
>
<ImageView
android:id="@+id/ImageView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/print"
android:adjustViewBounds="true"
android:layout_marginTop ="100dp"
android:layout_gravity= "center_horizontal"
/>
<ImageView
android:id="@+id/ImageView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/status"
android:adjustViewBounds="true"
android:layout_gravity= "center_horizontal"
android:layout_margin="@dimen/menu_item_size"
/>
<ImageView
android:id="@+id/ImageView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/contact"
android:adjustViewBounds="true"
android:layout_gravity= "center_horizontal"
android:layout_margin="@dimen/menu_item_size"
/>
<ImageView android:layout_width="wrap_content"
android:id="@+id/ImageView05"
android:layout_gravity="left"
android:layout_height="wrap_content"
android:src="@drawable/setting"
android:adjustViewBounds="true"
android:layout_marginLeft="10dp">
</ImageView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ImageView06"
android:src="@drawable/help"
android:adjustViewBounds="true"
android:layout_gravity="right"
android:layout_marginLeft="10dp"
/>
</LinearLayout>
</LinearLayout>