Esempio n. 1
0
 public ActionBarImpl(android.app.Dialog dialog)
 {
     mHideListener = new _AnimatorListenerAdapter_108(this);
     mShowListener = new _AnimatorListenerAdapter_125(this);
     mDialog       = dialog;
     init(dialog.getWindow().getDecorView());
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a listener to the set of listeners that are sent events through the life of an
 /// animation, such as start, repeat, and end.
 /// </summary>
 /// <remarks>
 /// Adds a listener to the set of listeners that are sent events through the life of an
 /// animation, such as start, repeat, and end.
 /// </remarks>
 /// <param name="listener">the listener to be added to the current set of listeners for this animation.
 ///     </param>
 public virtual void addListener(android.animation.Animator.AnimatorListener listener
                                 )
 {
     if (mListeners == null)
     {
         mListeners = new java.util.ArrayList <android.animation.Animator.AnimatorListener>
                          ();
     }
     mListeners.add(listener);
 }
Esempio n. 3
0
 /// <summary>Removes a listener from the set listening to this animation.</summary>
 /// <remarks>Removes a listener from the set listening to this animation.</remarks>
 /// <param name="listener">
 /// the listener to be removed from the current set of listeners for this
 /// animation.
 /// </param>
 public virtual void removeListener(android.animation.Animator.AnimatorListener listener
                                    )
 {
     if (mListeners == null)
     {
         return;
     }
     mListeners.remove(listener);
     if (mListeners.size() == 0)
     {
         mListeners = null;
     }
 }
Esempio n. 4
0
 public ActionBarImpl(android.app.Activity activity)
 {
     mHideListener = new _AnimatorListenerAdapter_108(this);
     mShowListener = new _AnimatorListenerAdapter_125(this);
     mActivity     = activity;
     android.view.Window window = activity.getWindow();
     android.view.View   decor  = window.getDecorView();
     init(decor);
     if (!mActivity.getWindow().hasFeature(android.view.Window.FEATURE_ACTION_BAR_OVERLAY
                                           ))
     {
         mContentView = decor.findViewById(android.R.id.content);
     }
 }
Esempio n. 5
0
 public virtual android.view.ViewPropertyAnimator setListener(android.animation.Animator
                                                              .AnimatorListener listener)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 6
0
		public ActionBarImpl(android.app.Dialog dialog)
		{
			mHideListener = new _AnimatorListenerAdapter_108(this);
			mShowListener = new _AnimatorListenerAdapter_125(this);
			mDialog = dialog;
			init(dialog.getWindow().getDecorView());
		}
Esempio n. 7
0
		public ActionBarImpl(android.app.Activity activity)
		{
			mHideListener = new _AnimatorListenerAdapter_108(this);
			mShowListener = new _AnimatorListenerAdapter_125(this);
			mActivity = activity;
			android.view.Window window = activity.getWindow();
			android.view.View decor = window.getDecorView();
			init(decor);
			if (!mActivity.getWindow().hasFeature(android.view.Window.FEATURE_ACTION_BAR_OVERLAY
				))
			{
				mContentView = decor.findViewById(android.R.id.content);
			}
		}