¡@

Home 

2014/10/16 ¤W¤È 08:21:30

android Programming Glossary: point3.x

How to make view resizable on touch event

http://stackoverflow.com/questions/10188478/how-to-make-view-resizable-on-touch-event

point2 new Point point2.x 150 point2.y 20 point3 new Point point3.x 150 point3.y 120 point4 new Point point4.x 50 point4.y 120 declare.. Color.WHITE canvas.drawRect point1.x 25 point2.x point3.x 25 point4.x paint BitmapDrawable mBitmap mBitmap new BitmapDrawable.. point4.x point4.y paint canvas.drawLine point4.x point4.y point3.x point3.y paint canvas.drawLine point2.x point2.y point3.x point3.y..

How to make view resizable on touch event

http://stackoverflow.com/questions/10188478/how-to-make-view-resizable-on-touch-event

for the balls point1 new Point point1.x 50 point1.y 20 point2 new Point point2.x 150 point2.y 20 point3 new Point point3.x 150 point3.y 120 point4 new Point point4.x 50 point4.y 120 declare each ball with the ColorBall class colorballs 0 new ColorBall.. paint.setStrokeWidth 5 canvas.drawPaint paint paint.setColor Color.WHITE canvas.drawRect point1.x 25 point2.x point3.x 25 point4.x paint BitmapDrawable mBitmap mBitmap new BitmapDrawable canvas.drawBitmap bitmap left top paint shade_region_between_points.. point2.x point2.y paint canvas.drawLine point1.x point1.y point4.x point4.y paint canvas.drawLine point4.x point4.y point3.x point3.y paint canvas.drawLine point2.x point2.y point3.x point3.y paint draw the balls on the canvas for ColorBall ball..