forked from yokaiwatch123/MauiComputerCare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain
21 lines (20 loc) · 813 Bytes
/
Main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
EditText mTextPassword;
Button mButtonLogin;
TextView mTextViewRegister;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mTextUsername =(EditText)findViewById(R.id.edittext_username);
mTextPassword =(EditText)findViewById(R.id.edittext_password);
mButtonLogin =(Button) findViewById(R.id.button_login);
mTextViewRegister =(TextView)findViewById(R.id.textview_register);
mTextViewRegister.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent registerIntent = new Intent (LoginActivity.this,Main2Activity.class);
startActivity(registerIntent);
}
});
}
}