2

I want to make horizontal scroll view in android like gallery view, in which centered image zooms in while scroll. Often seen in web but I haven't found one in andriod. Here is an example from one iOS app.

enter image description here

I have tried with HorizontalScrollView, ListView, ViewPager but not able to reproduce zoomed Effect in center while scroll, and next images comes from behind.

Haris
  • 1,822
  • 2
  • 22
  • 44

3 Answers3

3

You can use CoverFlow .Its a view for Android with several fancy effects.

  1. https://github.com/davidschreiber/FancyCoverFlow
  2. https://github.com/moondroid/CoverFlow
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
  • I am using moondroid/CoverFlow, but just the one issue, I want to remove endless loop. any suggestions ? – Haris Oct 05 '15 at 12:37
0

You can Directly Use View Pager with DepthPage Transformation to Acheive as you like according to Android Documentation.

You can Acheive like :Demo of ViewPager

To achieve this kind of View View Pager with Transformation Speed in Android

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Rajan Kali
  • 12,627
  • 3
  • 25
  • 37
0

May be you can use a ViewPager inside a TabHost to get something close to what you are looking for.

<TabHost
        android:id="@+id/calendar_add_edit_th"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <RelativeLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content">

            <LinearLayout
                android:id="@+id/ll_tabs_com"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:baselineAligned="false"
                android:orientation="horizontal"
                android:weightSum="1">

                <TabWidget
                    android:id="@android:id/tabs"
                    android:layout_width="match_parent"
                    android:layout_height="37dp"
                    android:layout_gravity="bottom" 
                    android:orientation="horizontal" />
            </LinearLayout>


            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_below="@+id/ll_tabs_com"
                android:background="#fff" />

            <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/ll_tabs_com">

                <android.support.v4.view.ViewPager
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:background="#fff" />

            </RelativeLayout>
        </RelativeLayout>
    </TabHost>
Syed Arsalan Kazmi
  • 949
  • 1
  • 11
  • 17