-
Notifications
You must be signed in to change notification settings - Fork 207
ScrollView
ScrollView extends View
可滚动的view,没有复用
ScrollView() 无参构造方法
[ScrollView(boolean a)](https://github.com/momotech/MLN/wiki/ScrollView-ScrollView-ScrollView-boolean) 1个参数构造方法
[ScrollView(boolean a, boolean b)](https://github.com/momotech/MLN/wiki/ScrollView-ScrollView-ScrollView-boolean-boolean) 2个参数构造方法
contentSize(Size a) ❌
设置contentSize
获取scrollView可滚动区域尺寸
[contentOffset(Point a)](https://github.com/momotech/MLN/wiki/ScrollView-self-contentOffset-Point)
设置内容偏移量
获取内容偏移量坐标
[showsHorizontalScrollIndicator(boolean a)](https://github.com/momotech/MLN/wiki/ScrollView-self-showsHorizontalScrollIndicator-boolean)
设置是否显示水平滚动指示器
获取是否显示水平滚动指示器状态
[showsVerticalScrollIndicator(boolean a)](https://github.com/momotech/MLN/wiki/ScrollView-self-showsVerticalScrollIndicator-boolean)
设置是否显示竖直滚动指示器
获取是否显示竖直滚动指示器
设置开始滚动回调
设置滚动中回调
设置拖拽结束回调,即拖动结束手指离开屏幕的瞬间
设置滚动开始减速的回调
设置滚动结束回调
设置内边距
获取内边距回调
setScrollIndicatorInset(number a, number b, number c, number d) ❌
设置滚动指示器边距,当有需求处理指示器的上下左右边偏移量时使用
[setOffsetWithAnim(Point a)](https://github.com/momotech/MLN/wiki/ScrollView-self-setOffsetWithAnim-Point)
滚动到指定位置
[setScrollEnable(boolean a)](https://github.com/momotech/MLN/wiki/ScrollView-self-setScrollEnable-boolean)
设置是否可以滚动
[i_bounces(boolean bounces)](https://github.com/momotech/MLN/wiki/ScrollView-self-i_bounces-boolean)
设置是否开启弹性效果
获取是否开启弹性效果
[i_bounceHorizontal(boolean bounces)](https://github.com/momotech/MLN/wiki/ScrollView-self-i_bounceHorizontal-boolean)
设置是否开启横向弹性效果
获取是否开启横向弹性效果
[i_bounceVertical(boolean bounces)](https://github.com/momotech/MLN/wiki/ScrollView-self-i_bounceVertical-boolean)
设置是否开启垂直弹性效果
获取是否开启垂直弹性效果
[a_flingSpeed(float speed)](https://github.com/momotech/MLN/wiki/ScrollView-float-a_flingSpeed-float)
设置滚动速度