Exemplo n.º 1
0
 private AnimationDrawable(android.graphics.drawable.AnimationDrawable.AnimationState
                           state, android.content.res.Resources res)
 {
     android.graphics.drawable.AnimationDrawable.AnimationState @as = new android.graphics.drawable.AnimationDrawable
                                                                      .AnimationState(state, this, res);
     mAnimationState = @as;
     setConstantState(@as);
     if (state != null)
     {
         setFrame(0, true, false);
     }
 }
Exemplo n.º 2
0
 internal AnimationState(android.graphics.drawable.AnimationDrawable.AnimationState
                         orig, android.graphics.drawable.AnimationDrawable owner, android.content.res.Resources
                         res) : base(orig, owner, res)
 {
     if (orig != null)
     {
         mDurations = orig.mDurations;
         mOneShot   = orig.mOneShot;
     }
     else
     {
         mDurations = new int[getChildren().Length];
         mOneShot   = true;
     }
 }
Exemplo n.º 3
0
		private AnimationDrawable(android.graphics.drawable.AnimationDrawable.AnimationState
			 state, android.content.res.Resources res)
		{
			android.graphics.drawable.AnimationDrawable.AnimationState @as = new android.graphics.drawable.AnimationDrawable
				.AnimationState(state, this, res);
			mAnimationState = @as;
			setConstantState(@as);
			if (state != null)
			{
				setFrame(0, true, false);
			}
		}