I need to do an action inside a Button, when the person presses and holds with the left side of the Button in the Button, increment a variable until you release. He released, for action.
Within the method of this Button, I want to increment the following variable:
int incrementar = 0;
incrementar++;
int valor = incrementar;