Android控制ScrollView滑动速度
16lz
2021-01-23
/** * 快/慢滑动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); } }
更多相关文章
- Android之TextView------LINK的点击事件
- Android触屏事件处理策略
- Android: 用Instrumentation类发送鼠标或按键事件
- Android上下与左右滑动事件处理
- Android中事件处理之LongClickListener实现步骤
- Android处理scrollciew里嵌套ExpandableListView的滑动事件
- android修改软键盘的回车键为搜索键以及点击时执行两次监听事件