示例#1
0
 internal ClipState(android.graphics.drawable.ClipDrawable.ClipState orig, android.graphics.drawable.ClipDrawable
                    owner, android.content.res.Resources res)
 {
     if (orig != null)
     {
         if (res != null)
         {
             mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
         }
         else
         {
             mDrawable = orig.mDrawable.getConstantState().newDrawable();
         }
         mDrawable.setCallback(owner);
         mOrientation          = orig.mOrientation;
         mGravity              = orig.mGravity;
         mCheckedConstantState = mCanConstantState = true;
     }
 }
示例#2
0
 internal ClipDrawable(android.graphics.drawable.ClipDrawable.ClipState state, android.content.res.Resources
                       res)
 {
     mClipState = new android.graphics.drawable.ClipDrawable.ClipState(state, this, res
                                                                       );
 }
示例#3
0
		internal ClipDrawable(android.graphics.drawable.ClipDrawable.ClipState state, android.content.res.Resources
			 res)
		{
			mClipState = new android.graphics.drawable.ClipDrawable.ClipState(state, this, res
				);
		}