/** Called when the UI needs to be updated to the 'Release to Refresh' state */
 protected void onReleaseToRefresh() {
   switch (mCurrentMode) {
     case PULL_UP_TO_REFRESH:
       mFooterLayout.releaseToRefresh();
       break;
     case PULL_DOWN_TO_REFRESH:
       mHeaderLayout.releaseToRefresh();
       break;
   }
 }
Esempio n. 2
0
 /**
  * Called when the UI has been to be updated to be in the {@link
  * com.handmark.pulltorefresh.library.PullToRefreshBase.State#RELEASE_TO_REFRESH} state.
  */
 protected void onReleaseToRefresh() {
   switch (mCurrentMode) {
     case PULL_FROM_END:
       mFooterLayout.releaseToRefresh();
       break;
     case PULL_FROM_START:
       mHeaderLayout.releaseToRefresh();
       break;
     default:
       // NO-OP
       break;
   }
 }