Class basicglib{ /** draw a circle of color c with center at current cursor position * the radius of the circle is given by radius */ public static void drawcircle(color c, int radius) {/*...*/} /**draw a rectangle of color c * with lower left corner at current cursor position * the length of the rectangle along the x axis is given by xlength * the length of the rectangle along the y axis is given by ylength */
Answers
Hi dear
In monodroid, you can do like this for rounded rectangle, and then keeping this as a parent class, editbox and other layout features can be added.
class CustomeView : TextView
{
public CustomeView (Context context, IAttributeSet ) : base (context, attrs)
{
}
public CustomeView(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle)
{
}
protected override void OnDraw(Android.Graphics.Canvas canvas)
{
base.OnDraw(canvas);
Paint p = new Paint();
p.Color = Color.White;
canvas.DrawColor(Color.DarkOrange);
Rect rect = new Rect(0,0,3,3);
RectF rectF = new RectF(rect);
canvas.DrawRoundRect( rectF, 1,1, p);
}
Brainiest answer please.
xd.....................................……