1

ScrollView含むレイアウトで定義されていますImageSwitcher

ユーザーが次のボタンまたは前のボタンを押すと、内部の画像が ImageSwitcher動的に変更されます。

今の問題は、高さが短く、高さが長い画像のサイズが異なることです。したがって、最初の短い画像が表示されてから長く表示され、戻った場合、スクロールビューは短い画像の寸法ではなく長い画像の高さを占めています。

これが私のレイアウトです

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#FFFFFF" >

    <ScrollView 

        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_centerInParent="true"
        android:layout_below="@+id/headerBar"
        android:visibility="gone"
        android:id="@+id/helpPanel"


       >
         <ImageSwitcher android:id="@+id/switcher"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

        />

       </ScrollView>
   </RelativeLayout>
4

0 に答える 0