师兄,我搜索了文章和例子,都不能满足需求,所以,想请诸位师兄一些帮助,在此先谢谢您了!需要完成的功能为:  主页的轮播图功能:
    1、只显示3张,中间的图尺寸大、不倾斜,左右两侧的图片最好倾斜。
    2、图片自动一张一张地切换,键盘方向键也可以操作上一张、下一张。
    3、这个效果不是全屏显示,而是放在一个页面的窗口中显示。效果如图:  我在网上找到过例子,是用Gallery控件,经过我的调整尺寸,也是显示 3 张了,如果我用方向键操作,中间的那张,也是倾斜的,我希望是不倾斜,非常不好调整,我感觉这个例子不对劲,因为如果图片变小了,就会显示7、8张图片,而我要求只显示3张,要求中间的那张不倾斜,我感觉应该找一个新的程序例子。各位师兄,在此非常感谢!!
轮播图 显示3张

解决方案 »

  1.   

    你的要求应该可以自己写,布局差不多就是下面布局的原理。
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#0099cc" >    <RelativeLayout
            android:id="@+id/rlcenter"
            android:layout_width="match_parent"
            android:background="#fff"
            android:layout_height="match_parent" >
            
            <ImageView
                android:id="@+id/imgleft"
                android:layout_toLeftOf="@+id/imgcenter"
                android:layout_marginRight="-20dp"
                android:layout_centerVertical="true"
                android:layout_width="80dp"
                android:layout_height="80dp"    
                android:scaleType="fitXY"
                android:background="@drawable/left"    
            />
            <ImageView
                android:id="@+id/imgright"            
                android:layout_toRightOf="@+id/imgcenter"            
                android:layout_marginLeft="-20dp"
                android:layout_centerVertical="true"
                android:layout_marginRight="10dp"
                android:layout_width="80dp"
                android:layout_height="80dp"
                android:scaleType="fitXY"
                android:background="@drawable/right"         
            />
            <ImageView
                android:id="@+id/imgcenter"
                android:layout_centerInParent="true"
                android:layout_width="100dp"
                android:layout_height="100dp"
                android:scaleType="fitXY"
                android:background="@drawable/center"
            />
        </RelativeLayout></LinearLayout>
      

  2.   

    想要倾斜可以用 Matrix 变形
      

  3.   

    cover flow的效果,网上蛮多源码的,搜搜看