4
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:src="@drawable/wallpaper" />
</RelativeLayout>
大小@drawable/peetscoffee_wallpaper
是640x480,但它不是水平居中。 我该如何解决这个问题?ImageView麻烦