setShape() public method

public setShape ( int arg0 ) : void
arg0 int
return void
Exemplo n.º 1
0
		public RoundRects (Context context)
			: base (context)
		{
			mRect = new Rect (0, 0, 120, 120);

			int[] colors = {
				unchecked((int)0xFFFF0000), unchecked((int)0xFF00FF00), unchecked((int)0xFF0000FF)
			};

			mDrawable = new GradientDrawable (GradientDrawable.Orientation.TL_BR, colors);
			mDrawable.setShape (GradientDrawable.RECTANGLE);
			mDrawable.setGradientRadius ((float)(Math.Sqrt (2) * 60));
		}