Android水平滚动视图,如图库

Android水平滚动视图,如图库,android,android-animation,android-scrollview,android-gallery,android-scroll,Android,Android Animation,Android Scrollview,Android Gallery,Android Scroll,我想在android的gallery视图中创建水平滚动视图,其中居中的图像在滚动时放大。经常在网络上看到,但我在安德里欧没有找到。下面是一个iOS应用程序的示例 我试过使用HorizontalScrollView、ListView、ViewPager,但无法在滚动时在中间再现缩放效果,接下来的图像从后面出现。您可以使用CoverFlow。这是一个Android视图,具有一些奇特的效果 根据Android文档,您可以直接使用带有DepthPage转换的视图寻呼机来实现自己喜欢的功能 你可以这

我想在android的gallery视图中创建水平滚动视图,其中居中的图像在滚动时放大。经常在网络上看到,但我在安德里欧没有找到。下面是一个iOS应用程序的示例


我试过使用HorizontalScrollView、ListView、ViewPager,但无法在滚动时在中间再现缩放效果,接下来的图像从后面出现。

您可以使用CoverFlow。这是一个Android视图,具有一些奇特的效果


  • 根据Android文档,您可以直接使用带有DepthPage转换的视图寻呼机来实现自己喜欢的功能

    你可以这样做:

    为了实现这种观点

    可能是,您可以在TabHost中使用ViewPager来获取与所需内容相近的内容

    <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>
    
    
    
    HorizontalScrollView有什么问题吗?我无法在滚动时在中心再现缩放效果,接下来的图像来自后面的井。。。也许你没有搜索好:“覆盖流”风格是你需要的(但删除角度)。在问答中,你有几个库。这里你有更多:尝试使用Coverflow第三方…我使用的是moondroid/Coverflow,但只有一个问题,我想删除无休止的循环。有什么建议吗?