-2

How to implement horizontal scroll view like carousel in android

My Required o/p screen enter image description here

When we scroll item should be centre and show previous and next item screen pieces like attached screen

Cœur
  • 37,241
  • 25
  • 195
  • 267
NareshRavva
  • 823
  • 3
  • 21
  • 50

1 Answers1

0

You can set your required screen or layout inside Scroll View tag. like bellow .

  <ScrollView
            android:layout_width="fill_parent"
            android:layout_height="380dp"
            android:background="@drawable/pagebg0"
            android:scrollbars="vertical || Horizontal"
            android:layout_marginLeft="30dp"
            android:layout_weight="1"
            android:layout_below="@+id/heading"
            android:layout_centerHorizontal="true">

 </ScrollView>
Selim Raza
  • 497
  • 7
  • 16