How to get touch points from center of layout in android

Monday, May 5, 2014

I was working on the onTouchListener which gives me x and y value of touch point it is giving w.r.to left corner point i,e left corner point is being (0,0) but i want center of layout to be (0,0) how to get the touch point w.r.to the center of layout?







http://ift.tt/1iScntq