![]() |
![]() |
![]() |
![]() |
@Override public void onDraw(Canvas c) { Paint p = new Paint( ); p.setColor(Color.RED); c.drawCircle(100, 120, 30, p); }
public MyView(Context context) { super(context); }
MyView mv = new MyView(this); LinearLayout ll = (LinearLayout) findViewById(R.id.layout); ll.addView(mv);