Posts

Showing posts with the label ondraw

Zoom is not working for a drawn circle

Zoom is not working for a drawn circle I have implemented TouchImageView class from the following github repository in my code. https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/ortiz/touch/TouchImageView.java in the above TouchImageView class in onDraw method i have implemented following code to draw circle dotPaint.setColor(ContextCompat.getColor(getContext(), R.color.map_site_dot)); Point point = site.getPoint(); canvas.drawCircle((float) point.getX(), (float) point.getY(), ViewUtils.dpToPx(DOT_DEFAULT_RADIUS), dotPaint); but circle is not displaying. If i have used dispatchDraw override method to draw circle it draw over the image. then zoom not getting applied for drawned circle, only its working for the below image. Could you please help me in this. By clicking "Post Your Answer", you acknowled...