There is a method that draws shapes, conditional name drawImage (). With a single click, it is necessary that this method be executed once, and when pressed and held, it is repeated while the button is held down. With a single click, everything is clear
View.OnClickListener onclBtn = new View.OnClickListener() { @Override public void onClick(View v) { drawImage(); } }; How to implement multiple repetitions while holding?