コード例 #1
0
 private void crossRotateLineFromBottomUnderTouch(PtrFrameLayout frame) {
   mTitleTextView.setVisibility(VISIBLE);
   if (frame.isPullToRefresh()) {
     mTitleTextView.setText(getResources().getString(R.string.cube_ptr_pull_down_to_refresh));
   } else {
     mTitleTextView.setText(getResources().getString(R.string.cube_ptr_pull_down));
   }
 }
コード例 #2
0
  @Override
  public void onUIRefreshPrepare(PtrFrameLayout frame) {

    mShouldShowLastUpdate = true;
    tryUpdateLastUpdateTime();
    mLastUpdateTimeUpdater.start();

    mProgressBar.setVisibility(INVISIBLE);

    mRotateView.setVisibility(VISIBLE);
    mTitleTextView.setVisibility(VISIBLE);
    if (frame.isPullToRefresh()) {
      mTitleTextView.setText(getResources().getString(R.string.cube_ptr_pull_down_to_refresh));
    } else {
      mTitleTextView.setText(getResources().getString(R.string.cube_ptr_pull_down));
    }
  }
コード例 #3
0
 private void crossRotateLineFromTopUnderTouch(PtrFrameLayout frame) {
   if (!frame.isPullToRefresh()) {
     mTitleTextView.setVisibility(VISIBLE);
     mTitleTextView.setText(R.string.cube_ptr_release_to_refresh);
   }
 }