在我的代碼中,image1顯示在左側,但圖像test_button_image2不在屏幕右側移動我該怎麼辦?這是我的截圖如何移動圖像並將其與屏幕右側對齊
i灣tomake likie這
請幫助我如何移動圖像2的佈局嗎?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/imagelogo2"
android:orientation="horizontal" >
<ImageView
android:id="@+id/test_button_image"
android:layout_width="wrap_content"
android:paddingLeft="5dp"
android:layout_height="wrap_content"
android:paddingTop="15dp"
android:src="@drawable/back" >
</ImageView>
<ImageView
android:id="@+id/test_button_image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:paddingTop="15dp"
android:src="@drawable/back" />
</LinearLayout>
<LinearLayout
android:id="@+id/lytContent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/txtCopyright"
android:layout_marginTop="10dp"
android:background="@drawable/border2"
android:layout_below="@+id/lytTitlebar"
android:orientation="vertical" >
<ListView
android:id="@+id/listMainMenu"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:listSelector="@drawable/listview_selector"
android:dividerHeight="1dip"
android:fadeScrollbars="true" />
</LinearLayout>
</LinearLayout>
可能重複[如何在兩個ImageViews之間消除空間?(http://stackoverflow.com/questions/18330788/如何去除的空間功能於兩imageviews間) – Renjith