现在的位置: 首页 > 综合 > 正文

android实现gallery一个一个滑动

2013年08月04日 ⁄ 综合 ⁄ 共 406字 ⁄ 字号 评论关闭

package com.broventure.re.views;

import android.content.Context;
import android.view.MotionEvent;
import android.widget.Gallery;
/**
 *  每次一张的gallery
 * @author jj
 *
 */
public class MyGallery extends Gallery {

public MyGallery(Context context) {
super(context);
// TODO Auto-generated constructor stub
}

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
// TODO Auto-generated method stub
return false;
}

}

抱歉!评论已关闭.