Exemple #1
0
			internal GradientState(android.graphics.drawable.GradientDrawable.GradientState state
				)
			{
				mChangingConfigurations = state.mChangingConfigurations;
				mShape = state.mShape;
				mGradient = state.mGradient;
				mOrientation = state.mOrientation;
				if (state.mColors != null)
				{
					mColors = (int[])state.mColors.Clone();
				}
				if (state.mPositions != null)
				{
					mPositions = (float[])state.mPositions.Clone();
				}
				mHasSolidColor = state.mHasSolidColor;
				mSolidColor = state.mSolidColor;
				mStrokeWidth = state.mStrokeWidth;
				mStrokeColor = state.mStrokeColor;
				mStrokeDashWidth = state.mStrokeDashWidth;
				mStrokeDashGap = state.mStrokeDashGap;
				mRadius = state.mRadius;
				if (state.mRadiusArray != null)
				{
					mRadiusArray = (float[])state.mRadiusArray.Clone();
				}
				if (state.mPadding != null)
				{
					mPadding = new android.graphics.Rect(state.mPadding);
				}
				mWidth = state.mWidth;
				mHeight = state.mHeight;
				mInnerRadiusRatio = state.mInnerRadiusRatio;
				mThicknessRatio = state.mThicknessRatio;
				mInnerRadius = state.mInnerRadius;
				mThickness = state.mThickness;
				mCenterX = state.mCenterX;
				mCenterY = state.mCenterY;
				mGradientRadius = state.mGradientRadius;
				mUseLevel = state.mUseLevel;
				mUseLevelForShape = state.mUseLevelForShape;
			}
Exemple #2
0
			internal GradientState()
			{
				// no need to copy
				// no need to copy
				// if >= 0 use stroking.
				// use this if mRadiusArray is null
				mOrientation = android.graphics.drawable.GradientDrawable.Orientation.TOP_BOTTOM;
			}
Exemple #3
0
			internal GradientState(android.graphics.drawable.GradientDrawable.Orientation orientation
				, int[] colors)
			{
				mOrientation = orientation;
				mColors = colors;
			}
Exemple #4
0
 public GradientDrawable(android.graphics.drawable.GradientDrawable.Orientation arg0, int[] arg1)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.graphics.drawable.GradientDrawable.staticClass, global::android.graphics.drawable.GradientDrawable._GradientDrawable4048, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
     Init(@__env, handle);
 }