-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLanguageActivity.java
More file actions
39 lines (29 loc) · 1.03 KB
/
LanguageActivity.java
File metadata and controls
39 lines (29 loc) · 1.03 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
//Henry Garkanian
//CST 338
//2 December 2023
//Project 2 Android Translator
package com.example.androidtranslator;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class LanguageActivity extends AppCompatActivity {
Button armenianButton, frenchButton, backButton, createWordButton;
TextView textView4;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_language);
backButton = findViewById(R.id.exitButton);
backButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent3 = new Intent(LanguageActivity.this, LoginActivity.class); //Heads back to app main page
startActivity(intent3);
}
});
}
}