私は Android ギャラリーを行っていImageView
ます。フルスクリーンで画像を表示する必要があります。つまり、ImageView と重なる必要がありGallery
ます。
問題は、 がImageView
占有していない部分を が占めていることですがGallery
、これを達成する方法がわかりません。
これは私のレイアウトです:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<ImageView
android:id="@+id/GalleryImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:scaleType="fitXY" />
<Gallery
android:id="@+id/GalleryThumbnails"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/GalleryImage" />
</RelativeLayout>
よろしくお願いします!