I'm doing an Android gallery and I need to have the ImageView
which shows a picture in full screen, and on top of it -meaning that it has to overlap the ImageView- the Gallery
.
The problem is that now the ImageView
occupies the portion that is not occupied by the Gallery
, but I don't know how to achieve this.
This is my layout:
<?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>
Thanks a lot in advance!