I have Button
and an TextView
. Initially on click of button i an incrementing the count value and display in the TextView. The code i have used to do so is.
buttonDayPlus.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
count = count + 1;
textView.setText(Integer.toString(count));
}
}
But now what i want is if the user pressed the Button, then i want to increment the value one after another and display the increment value in the textView
and as soon as user move his hand up...the final increment value is shown in textView
. So if anyone knows help me to solve this out