Last active
December 5, 2017 16:13
-
-
Save gamgoon/c2cc4ded47a31ae2fd73078e565f831a to your computer and use it in GitHub Desktop.
This file contains 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
Button buttonRed = (Button) findViewById(R.id.buttonRed) ; | |
buttonRed.setOnClickListener(new Button.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
textView1.setText("Red") ; | |
textView1.setBackgroundColor(Color.rgb(255, 0, 0)); | |
} | |
}) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment