I am using ImageSwitcher to show a set of photos. Each photo has its unique caption (TextView) below it. As the user switches from photo A to the photo B, the following behavior is observed:
If photo B's height is greater than photo A, then caption for B is shown correctly. But if photo B's height is less than photo A, then the caption of photo B would be shown in the same y position as the caption for photo A. The result is empty space between the photo and the caption. This should not happen as I am using "wrap_content" for the layout_height attribute of ImageSwitcher. The XML layout file snipplet is: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="none"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <Gallery android:id="@+id/gallery" android:layout_width="fill_parent" android:layout_height="40dip" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:gravity="center_vertical" android:spacing="13" /> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageSwitcher android:id="@+id/switcher" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" /> <TextView android:id="@+id/photo_caption" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="10sp" android:textAlign="start" android:layout_below="@id/switcher" android:background="#77000000" /> I tried to use LinearLayout instead of RelativeLayout, but same results. Please, if anyone has a workaround, let me know. I appreciate the help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

