forked from ChristopherTRoy/AUTOMATED-UNIVERSITY-LOGIN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainActivity.java
More file actions
43 lines (38 loc) · 1.46 KB
/
MainActivity.java
File metadata and controls
43 lines (38 loc) · 1.46 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
package com.example.selab_project;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.airbnb.lottie.LottieAnimationView;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
LottieAnimationView admin=findViewById(R.id.admin_login_button);
admin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent it=new Intent(MainActivity.this,AdminLogin.class);
startActivity(it);
}
});
LottieAnimationView teacher=findViewById(R.id.teacher_login_button);
teacher.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent it=new Intent(MainActivity.this,TeacherLogin.class);
startActivity(it);
}
});
LottieAnimationView student=findViewById(R.id.student_login_button);
student.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent it=new Intent(MainActivity.this,StudentLogin.class);
startActivity(it);
}
});
}
}