B
BoBa22
Neues Mitglied
- 0
Hallo zusammen,
ich habe in meiner App ein HorizontalScrollView eingebaut.
Ich würde gerne, das die Bilder nicht wie "an einem Faden hintereinander weglaufen", sondern wenn ich nach Links oder rechts "wische" das nächste Bild angezeigt wird und "stehen bleibt".
Hier ist mein Quellcode....
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#DECB78" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
androidrientation="vertical" >
// HorizontalScrollview
<HorizontalScrollView
android:id="@+id/HorizontalScrollView01"
android:layout_height="match_parent"
android:layout_width="wrap_content">
<LinearLayout
androidrientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
</LinearLayout>
</HorizontalScrollView>
ich habe in meiner App ein HorizontalScrollView eingebaut.
Ich würde gerne, das die Bilder nicht wie "an einem Faden hintereinander weglaufen", sondern wenn ich nach Links oder rechts "wische" das nächste Bild angezeigt wird und "stehen bleibt".
Hier ist mein Quellcode....
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#DECB78" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
androidrientation="vertical" >
// HorizontalScrollview
<HorizontalScrollView
android:id="@+id/HorizontalScrollView01"
android:layout_height="match_parent"
android:layout_width="wrap_content">
<LinearLayout
androidrientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/berg"/>
</LinearLayout>
</HorizontalScrollView>