horizontal scroll view in android studio

 <HorizontalScrollView

    android:layout_width="match_parent"
android:layout_height="180dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SpeakableTextPresentCheck">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:orientation="horizontal">

<ImageView
android:id="@+id/imageView1"
android:layout_width="130dp"

android:layout_height="180dp"
android:layout_weight="1"
app:srcCompat="@drawable/rec1" />

<ImageView
android:id="@+id/imageView3"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/rec3" />

<ImageView
android:id="@+id/imageView4"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/rec5" />

<ImageView
android:id="@+id/imageView6"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/rec6" />

<ImageView
android:id="@+id/imageView7"

android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/reverse1" />

<ImageView
android:id="@+id/imageView8"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/reverse2" />

<ImageView
android:id="@+id/imageView9"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/reverse4" />

<ImageView
android:id="@+id/imageView10"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/reverse5" />


</LinearLayout>
</HorizontalScrollView>

Comments

Popular posts from this blog

priority_queue

Alignment in css

Queue data structure in c++