我想在屏幕的底部以相同的重量顯示三個ImageViews
。但圖像的大小不固定。我想展示2張圖片,其中一張應該隱藏,我該怎麼辦?
如何調整應該彼此並排的三個ImageViews
和第三個ImageView
之間的空間不應與屏幕上可見的兩個ImageViews
重疊?如何在Android中水平對齊三個ImageViews?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main_imge_1"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#F9F939"
android:src="@drawable/ic_launcher"
android:layout_toLeftOf ="@+id/imageView6"
android:layout_alignParentBottom="true"
android:padding="15dp" />
<ImageView
android:id="@+id/imageView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#54F71D"
android:src="@drawable/ic_launcher"
android:layout_alignParentBottom="true"
android:padding="15dp"
android:layout_margin="10dp" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#1DF7AB"
android:src="@drawable/ic_launcher"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@+id/imageView6"
android:padding="15dp" />
</RelativeLayout>
尊敬的用戶,歡迎來到StackOverflow。請大聲朗讀問題的第一行,並告訴我你是否瞭解他們。然後,請向我解釋 - 特別是最後一句。 –
你想說什麼......請寫清楚...... – WISHY
我想在屏幕底部顯示threeimageview horizonatlly我該怎麼做? – user2806157