# RefreshKernel

public interface RefreshKernel

刷新布局核心功能接口 为功能复杂的 Header 或者 Footer 开放的接口 Created by scwang on 2017/5/26.

## Functions

animSpinner
Link copied to clipboard
public abstract ValueAnimator animSpinner(int endSpinner)
执行动画使视图位移到指定的 位置 moveSpinner 的取名来自 谷歌官方的
finishTwoLevel
Link copied to clipboard
public abstract RefreshKernel finishTwoLevel()
结束关闭二极刷新
getRefreshContent
Link copied to clipboard
public abstract RefreshContent getRefreshContent()
getRefreshLayout
Link copied to clipboard
public abstract RefreshLayout getRefreshLayout()
moveSpinner
Link copied to clipboard
public abstract RefreshKernel moveSpinner(int spinner, boolean isDragging)
移动视图到指定位置 moveSpinner 的取名来自 谷歌官方的
requestDefaultTranslationContentFor
Link copied to clipboard
public abstract RefreshKernel requestDefaultTranslationContentFor(RefreshComponent internal, boolean translation)
请求设置默认内容滚动设置
requestDrawBackgroundFor
Link copied to clipboard
public abstract RefreshKernel requestDrawBackgroundFor(RefreshComponent internal, int backgroundColor)
指定在下拉时候为 Header 或 Footer 绘制背景
requestFloorBottomPullUpToCloseRate
Link copied to clipboard
public abstract RefreshKernel requestFloorBottomPullUpToCloseRate(float rate)
设置二楼底部上划关闭所占高度的比率
requestFloorDuration
Link copied to clipboard
public abstract RefreshKernel requestFloorDuration(int duration)
设置二楼回弹时长
requestNeedTouchEventFor
Link copied to clipboard
public abstract RefreshKernel requestNeedTouchEventFor(RefreshComponent internal, boolean request)
请求事件
requestRemeasureHeightFor
Link copied to clipboard
public abstract RefreshKernel requestRemeasureHeightFor(RefreshComponent internal)
请求重新测量 headerHeight 或 footerHeight , 要求 height 高度为 WRAP_CONTENT
setState
Link copied to clipboard
public abstract RefreshKernel setState(RefreshState state)
startTwoLevel
Link copied to clipboard
public abstract RefreshKernel startTwoLevel(boolean open)
开始执行二极刷新