RefreshKernel

public interface RefreshKernel

Core refresh layout interface. Opens APIs for complex Headers or Footers.

Functions

Link copied to clipboard
public abstract ValueAnimator animSpinner(int endSpinner)
Execute animation to move the view to a specified position.
Link copied to clipboard
public abstract RefreshKernel finishTwoLevel()
Finish and close two-level refresh.
Link copied to clipboard
public abstract RefreshContent getRefreshContent()
Link copied to clipboard
public abstract RefreshLayout getRefreshLayout()
Link copied to clipboard
public abstract RefreshKernel moveSpinner(int spinner, boolean isDragging)
Translate the view to a specified position.
Link copied to clipboard
public abstract RefreshKernel requestDefaultTranslationContentFor(RefreshComponent internal, boolean translation)
Set default content translation behavior.
Link copied to clipboard
public abstract RefreshKernel requestDrawBackgroundFor(RefreshComponent internal, int backgroundColor)
Specify a background to draw for the Header or Footer during pull.
Link copied to clipboard
Set the height ratio for closing the two-level floor by swiping up from the bottom.
Link copied to clipboard
public abstract RefreshKernel requestFloorDuration(int duration)
Set the two-level rebound duration.
Link copied to clipboard
public abstract RefreshKernel requestNeedTouchEventFor(RefreshComponent internal, boolean request)
Request touch events.
Link copied to clipboard
public abstract RefreshKernel requestRemeasureHeightFor(RefreshComponent internal)
Re-measure headerHeight or footerHeight.
Link copied to clipboard
public abstract RefreshKernel setState(RefreshState state)
Link copied to clipboard
public abstract RefreshKernel startTwoLevel(boolean open)
Start two-level refresh.