Repository navigation
Expand file tree
/
Copy pathworkoutSelect.java
More file actions
73 lines (69 loc) · 2.42 KB
/
Copy pathworkoutSelect.java
File metadata and controls
73 lines (69 loc) · 2.42 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
70
71
72
73
package com.zackwillson.zworkouts;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
public class workoutSelect extends AppCompatActivity {
TextView title;
public final static String EXTRA_MESSAGE = "com.example.zworkouts.MESSAGE";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_workout_select);
title = findViewById(R.id.textView19);
title.setGravity(Gravity.CENTER);
title.setBackground(getResources().getDrawable(R.drawable.round));
}
public void Run(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "1");
startActivity(intent);
}
public void Circuit(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "2");
startActivity(intent);
}
public void HIIT(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "3");
startActivity(intent);
}
public void Upper(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "4");
startActivity(intent);
}
public void Lower(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "5");
startActivity(intent);
}
public void Core(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "6");
startActivity(intent);
}
public void SSFullbody(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "7");
startActivity(intent);
}
public void Fullbody(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "8");
startActivity(intent);
}
public void Fullbody1(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "9");
startActivity(intent);
}
public void Fullbody2(View view){
Intent intent = new Intent(this, Workout.class);
intent.putExtra(EXTRA_MESSAGE, "10");
startActivity(intent);
}
}