canvas controlling by ontouchlistener

Viewed 362

I made a two small rectangle by using canvas but i faced a small problem . I don't know how to control the two rectangles by onTouchlistener and move it vertically and horizontally .

any suggestion ?

1 Answers
Related