Android控制ScrollView滑动速度
16lz
2022-04-01
/** * 快/慢滑动ScrollView * * */ public class SlowScrollView extends ScrollView { public SlowScrollView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public SlowScrollView(Context context, AttributeSet attrs) { super(context, attrs); } public SlowScrollView(Context context) { super(context); } /** * 滑动事件 */ @Override public void fling(int velocityY) { super.fling(velocityY / 4); } }
更多相关文章
- TextView跑马灯效果
- Android之ViewFlipper的使用与ListView的分页加载
- Android触屏事件处理策略
- Android: 用Instrumentation类发送鼠标或按键事件
- Android之TextView------LINK的点击事件
- 详解Android中自定义View的invalidate,Handler和postInvalidate
- android notification 事件
- android键盘事件
- Android(安卓)滑动效果代码分享