November 28th, 2011, 06:26 AM
|
#2 (permalink)
|
|
Member
Join Date: Dec 2010
Location: Aarhus, Denmark
Posts: 134
Device(s): SE Xperia X10
Thanks: 2
Thanked 22 Times in 22 Posts
|
I would simply make an int variable that counts up on every click and set the textview accordingly. Something like:
Code:
private int count;
private TextView counterText;
public void onCreate(){
...
counterText = findViewById(R.id.your_textview_id);
...
}
...
//DO INCREASE
count++; //Counts up with 1
counterText.setText("" + count);
...
|
|
|