I created a view in this view, I want to display this field as after receiving a pixel where the user touches the screen, but the onDraw method does not update the canvas when the screen is touched. Can you guys help me?
public class PlayView extends View { float width,height; float touchatX, touchatY; boolean isanyBox; public void init() { isanyBox = false; } @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) {
source share