Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class drawhere{
- Paint p;
- Line l1;
- Line l2;
- Circle circ;
- void onDraw(Canvas canvas){
- canvas.drawLine(l1);
- canvas.drawLine(l2);
- canvas.drawCircle(circ);
- }
- void initFileds(){
- p = new Paint();
- l1 = new Line(0, 0, 100, 100, p);
- l2 = new Line(0,100, 200, 200, p);
- circ = new Circle( 500, 500, 100, p);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement