我想在我的應用程序的某個屏幕底部留下一張圖片,我終於實現了這一點,但eclipse自動在我的圖片的頂部和底部添加了一個條。我不想這樣,你能幫忙嗎? 如果您需要更多信息,請說:P。圖片廣告
編輯:activity_main.xml中:
`
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/metro" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_toLeftOf="@+id/imageButton1"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/syllabus" />
<ImageButton
android:id="@+id/imageButton3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton1"
android:layout_toRightOf="@+id/imageButton1"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/bus" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="18dp"
android:height="20dp"
android:textColor="#FFFFFF"
android:width="175dp" />
<ImageButton
android:id="@+id/imageButton4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageButton1"
android:layout_toLeftOf="@+id/imageButton3"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/supermarkt" />
<ImageButton
android:id="@+id/imageButton5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageButton2"
android:layout_below="@+id/imageButton2"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/restaurants" />
<ImageButton
android:id="@+id/imageButton6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton4"
android:layout_toRightOf="@+id/imageButton4"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/geldautomaat" />
<ImageButton
android:id="@+id/imageButton7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageButton4"
android:layout_toLeftOf="@+id/imageButton6"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/kaartrome" />
<ImageButton
android:id="@+id/imageButton8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageButton6"
android:layout_alignTop="@+id/imageButton7"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/italiaans" />
<ImageButton
android:id="@+id/imageButton9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageButton7"
android:layout_toLeftOf="@+id/imageButton7"
android:minHeight="100dp"
android:minWidth="100dp"
android:src="@drawable/telefoon" />
<RelativeLayout
android:id="@+id/InnerRelativeLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<ImageView
android:id="@+id/Skyline"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:src="@drawable/skyline" />
</RelativeLayout>
`
如果您發佈現在的代碼,它會更容易幫助。 – MAV 2013-03-27 17:57:35
這是你的意思嗎? – Ide 2013-03-27 18:05:54