HorizontalScrollView

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"
android:orientation="vertical" >


// HorizontalScrollview
<HorizontalScrollView
android:id="@+id/HorizontalScrollView01"
android:layout_height="match_parent"
android:layout_width="wrap_content">


<LinearLayout
android:orientation="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>
 

Ähnliche Themen

H
Antworten
2
Aufrufe
872
haner
H
X
  • xdroid-man
Antworten
7
Aufrufe
791
zumafx
Z
M
  • MandraKobold
Antworten
2
Aufrufe
865
MandraKobold
M
Zurück
Oben Unten