tags:

views:

19

answers:

0

Hi all,

I have a layout like this:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
     <ImageView
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"
            android:src="@drawable/header"
            android:id="@+id/header"
            android:scaleType="fitXY"
            />
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@id/header"
        android:clipChildren="false"
    >
        <Gallery
            android:id="@+id/gallery_view"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"
            android:paddingTop="25dip"
            android:paddingBottom="25dip"
            android:clipToPadding="false"
            android:background="#FF0000"
        />

</RelativeLayout>
</RelativeLayout>

That displays a header on top and a gallery. When an image from the gallery is clicked, it zooms in in order to fill the entire screen, but as expected the image is drawn only inside the bounds of its View. In other words, the header is being draw on top of the zooming image.

Any tip on how to solve that would be greatly appreciated. Thanks