Created
September 16, 2019 05:44
-
-
Save ramonrabello/cbd435b5ae7124b9e97265542efb5912 to your computer and use it in GitHub Desktop.
View Binding using findViewById()
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
public class MainActivity extends Activity { | |
private TextView description; | |
private Button signInButton; | |
private Button cancelButton; | |
// onCreate() | |
description = (TextView) findViewById(R.id.description); | |
signInButton = (Button) findViewById(R.id.signInButton); | |
cancelButton = (Button) findViewById(R.id.cancelButton); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment