Hi Pedro,
I have a gallery with previews and when the user taps one he gets a
large image. Depending on portrait/landscape mode of the mobile and
the picture, the picture fills all the screen below the gallery (no
sense in hiding the gallery).
There is a preview here:
http://stephanwiesner.de/alpenkalb/beta.htm (2nd picture)

My xml looks 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" android:background="#ff000000">

        <Gallery android:id="@+id/gallery1"
android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                />


        <ImageSwitcher android:id="@+id/switcher1"
                android:layout_width="fill_parent"
android:layout_height="fill_parent"
                android:layout_below="@+id/gallery1">
        </ImageSwitcher>

        <TextView android:layout_width="fill_parent" android:id="@+id/
album_comment"
                android:gravity="center_horizontal" android:text="    Klicken 
Sie
ein Bild     "
                android:layout_height="wrap_content" android:textColor="@color/
album_text"
                android:background="@color/menu_background"
                android:layout_alignParentBottom="true"/>


</RelativeLayout>



Sunny greetings from Lucerne,
Stephan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to