Beispiel #1
0
 public void applyMoveStatus() {
   if (isInStartPosition()) return;
   if (getCurrentPosY() > getStartSwitchOffset()) {
     mHeaderImpl.onCanStartSwitch(
         getCurrentPosY(), getStartSwitchOffset(), mShowText.headerSwitchTiptext);
   } else if (getCurrentPosY() > 0) {
     mHeaderImpl.onMoveStart(getCurrentPosY(), getStartSwitchOffset(), mShowText.headerStarttext);
   } else if (getCurrentPosY() < -getStartSwitchOffset()) {
     mFooterImpl.onCanStartSwitch(
         getCurrentPosY(), getStartSwitchOffset(), mShowText.footerSwitchTiptext);
   } else if (getCurrentPosY() < 0) {
     mFooterImpl.onMoveStart(getCurrentPosY(), getStartSwitchOffset(), mShowText.footerStarttext);
   }
 }