Created
July 25, 2017 10:06
-
-
Save abel-masila/a1a44c76b1e281142e55ad59770ce510 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int myValue = 0; | |
TextView txtResult=(TextView)findViewById(R.id.txtResult); | |
//Then button event | |
btnIncrement.setOnClickListener(new OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
// score operation like score += increment_value; | |
txtResult.setText(""+myValue); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment