示例#1
0
 /// <summary>Enables or disables animation between show/hide states.</summary>
 /// <remarks>
 /// Enables or disables animation between show/hide states.
 /// If animation is disabled using this method, animations in progress
 /// will be finished.
 /// </remarks>
 /// <param name="enabled">true to animate, false to not animate.</param>
 public virtual void setShowHideAnimationEnabled(bool enabled)
 {
     mShowHideAnimationEnabled = enabled;
     if (!enabled && mCurrentShowAnim != null)
     {
         mCurrentShowAnim.end();
     }
 }
示例#2
0
 private void finishAnimation()
 {
     android.animation.Animator a = mCurrentAnimation;
     if (a != null)
     {
         mCurrentAnimation = null;
         a.end();
     }
 }
示例#3
0
 internal virtual void animateToMode(bool toActionMode)
 {
     if (toActionMode)
     {
         show(false);
     }
     if (mCurrentModeAnim != null)
     {
         mCurrentModeAnim.end();
     }
     mActionView.animateToVisibility(toActionMode ? android.view.View.GONE : android.view.View
                                     .VISIBLE);
     mContextView.animateToVisibility(toActionMode ? android.view.View.VISIBLE : android.view.View
                                      .GONE);
     if (mTabScrollView != null && !mActionView.hasEmbeddedTabs() && mActionView.isCollapsed
             ())
     {
         mTabScrollView.animateToVisibility(toActionMode ? android.view.View.GONE : android.view.View
                                            .VISIBLE);
     }
 }