RefreshComponent

public interface RefreshComponent

刷新内部组件 Created by scwang on 2017/5/26.

Functions

Link copied to clipboard
public abstract SpinnerStyle getSpinnerStyle()
获取变换方式 SpinnerStyle 必须返回 非空
Link copied to clipboard
public abstract View getView()
获取实体视图
Link copied to clipboard
public abstract boolean isSupportHorizontalDrag()
是否支持水平方向的拖动(将会影响到onHorizontalDrag的调用)
Link copied to clipboard
public abstract int onFinish(RefreshLayout refreshLayout, boolean success)
【仅限框架内调用】动画结束
Link copied to clipboard
public abstract void onHorizontalDrag(float percentX, int offsetX, int offsetMax)
【仅限框架内调用】水平方向的拖动
Link copied to clipboard
public abstract void onInitialized(RefreshKernel kernel, int height, int maxDragHeight)
【仅限框架内调用】尺寸定义完成 (如果高度不改变(代码修改:setHeader),只调用一次, 在RefreshLayout#onMeasure中调用)
Link copied to clipboard
public abstract void onMoving(boolean isDragging, float percent, int offset, int height, int maxDragHeight)
【仅限框架内调用】手指拖动下拉(会连续多次调用,添加isDragging并取代之前的onPulling、onReleasing)
Link copied to clipboard
public abstract void onReleased(RefreshLayout refreshLayout, int height, int maxDragHeight)
【仅限框架内调用】释放时刻(调用一次,将会触发加载)
Link copied to clipboard
public abstract void onStartAnimator(RefreshLayout refreshLayout, int height, int maxDragHeight)
【仅限框架内调用】开始动画
Link copied to clipboard
public abstract void setPrimaryColors(Array<int> colors)
【仅限框架内调用】设置主题颜色