-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMainActivity.java
More file actions
69 lines (51 loc) · 1.93 KB
/
MainActivity.java
File metadata and controls
69 lines (51 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.example.alexander.cryptarbitrage2;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ToggleButton;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
static boolean isCreatedHomepage = false;
static boolean isCreatedExchanges = false;
static boolean isCreatedCryptocurrencies = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//set up click listeners for all the buttons
View forgotPasswordButton = findViewById(R.id.forgotPasswordButton);
forgotPasswordButton.setOnClickListener(this);
View logInButton = findViewById(R.id.logInButton);
logInButton.setOnClickListener(this);
View signUpButton = findViewById(R.id.signUpButton);
signUpButton.setOnClickListener(this);
}
@Override
protected void onStart() {
super.onStart();
System.out.println("Penis");
System.out.println("Penis");
}
/**
*
* @param v is the button being clicked
*/
public void onClick(View v){
switch (v.getId()){
case R.id.forgotPasswordButton:
//fill in what happens when forgotPassword Button is clicked
break;
case R.id.logInButton:
//fill in what happens when logIn Button is clicked
Intent i = new Intent(this, HomePage.class);
startActivity(i);
break;
case R.id.signUpButton:
//fill in what happens when signUpButton is clicked
break;
}
}
}