I want to draw the lines between points on the view, and then pull those points upto desired positions even the shape will change.
i know how to draw the line between two points canvas.drawLine(10, 10, 90, 10, paint); by using this i can draw the lines between points.
EDIT : here i am attaching image for clear explanation, from Paul answer now i am able to draw the lines between points, still have the problem of pulling points…

Here’s how it’s done. Suppose you have your points, make these global:
What you need to do is make a RectF around each point. The bigger the RectF, the bigger the touch area for the point is.
Define some globals to keep track of what the user is doing in onTouch. One int is the corner being touched, and the other four are identifiers for the corners.
Now, in your onTouch event, you can check which point your user is touching in like this:
What this does is make a rectangle around your point. Imagine drawing boxes around your points in the picture. These are the “touch pads” created by the Rect objects. The size of the rectangle is set by sizeOfRect. In the onTouchEvent, it checks each rectangle object to see if the user’s touch is inside the rectangle, signaling an the user trying to touch that point.