FixedSpeedScroller
来源:互联网 发布:淘宝秒抢用什么软件 编辑:程序博客网 时间:2024/06/10 18:27
package com.cmb.zh.common.viewsupport;
import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;
//viewpage切换速度调整
public class FixedSpeedScroller extends Scroller {
private int mDuration = 1000;
public FixedSpeedScroller(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public FixedSpeedScroller(Context context, Interpolator interpolator) {
super(context, interpolator);
}
@Override
public void startScroll(int startX, int startY, int dx, int dy, int duration) {
// Ignore received duration, use fixed one instead
super.startScroll(startX, startY, dx, dy, mDuration);
}
@Override
public void startScroll(int startX, int startY, int dx, int dy) {
// Ignore received duration, use fixed one instead
super.startScroll(startX, startY, dx, dy, mDuration);
}
public void setmDuration(int time) {
mDuration = time;
}
public int getmDuration() {
return mDuration;
}
}
import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;
//viewpage切换速度调整
public class FixedSpeedScroller extends Scroller {
private int mDuration = 1000;
public FixedSpeedScroller(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public FixedSpeedScroller(Context context, Interpolator interpolator) {
super(context, interpolator);
}
@Override
public void startScroll(int startX, int startY, int dx, int dy, int duration) {
// Ignore received duration, use fixed one instead
super.startScroll(startX, startY, dx, dy, mDuration);
}
@Override
public void startScroll(int startX, int startY, int dx, int dy) {
// Ignore received duration, use fixed one instead
super.startScroll(startX, startY, dx, dy, mDuration);
}
public void setmDuration(int time) {
mDuration = time;
}
public int getmDuration() {
return mDuration;
}
}
0 0
- FixedSpeedScroller
- 触摸事件传递过程
- MySQL数据类型--日期时间
- gcloud_voice::GetVoiceEngine()->StartRecording返回GCLOUD_VOICE_PATH_ACCESS_ERR
- byte数组转float 以及byte转其他类型时为什么要&0xff
- 从1到n整数中1出现的次数
- FixedSpeedScroller
- Java基本概念-JavaScript表单验证
- wim
- JDK1.8源码阅读系列之一:ArrayList
- java设计模式大话之原型模式
- win7下建立一个ftp站点的步骤
- 《你不知道的js》------1.作用域是什么
- 跳转语句:goto;break;continue;return
- 高德发布物流行业LBS解决方案