/** * Set Text to show when the Widget is being pulled, and will refresh when released * * @param releaseLabel - String to display * @param mode - Controls which Header/Footer Views will be updated. <code>Mode.BOTH</code> will * update all available, other values will update the relevant View. */ public void setReleaseLabel(String releaseLabel, Mode mode) { if (null != mHeaderLayout && mode.canPullDown()) { mHeaderLayout.setReleaseLabel(releaseLabel); } if (null != mFooterLayout && mode.canPullUp()) { mFooterLayout.setReleaseLabel(releaseLabel); } }
public void setReleaseLabel(String releaseLabel) { super.setReleaseLabel(releaseLabel); if (null != mHeaderLoadingView) { mHeaderLoadingView.setReleaseLabel(releaseLabel); } if (null != mFooterLoadingView) { mFooterLoadingView.setReleaseLabel(releaseLabel); } }