コード例 #1
0
 /**
  * Set Text to show when the Widget is being Pulled
  *
  * @param pullLabel - 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 setPullLabel(String pullLabel, Mode mode) {
   if (null != mHeaderLayout && mode.canPullDown()) {
     mHeaderLayout.setPullLabel(pullLabel);
   }
   if (null != mFooterLayout && mode.canPullUp()) {
     mFooterLayout.setPullLabel(pullLabel);
   }
 }
コード例 #2
0
  public void setPullLabel(String pullLabel) {
    super.setPullLabel(pullLabel);

    if (null != mHeaderLoadingView) {
      mHeaderLoadingView.setPullLabel(pullLabel);
    }
    if (null != mFooterLoadingView) {
      mFooterLoadingView.setPullLabel(pullLabel);
    }
  }