-
Notifications
You must be signed in to change notification settings - Fork 2
/
Opciones_administradores.java
42 lines (34 loc) · 1.31 KB
/
Opciones_administradores.java
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
package com.example.acreditads2023;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
public class Opciones_administradores extends AppCompatActivity {
private Button btnVolver;
private Button btnEventos;
private View view;
@SuppressLint("MissingInflatedId")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.opciones_administradores);
btnEventos = findViewById(R.id.btnEventos);
btnEventos.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), Evento_activity.class);
startActivity(intent);
}
});
btnVolver = findViewById(R.id.btnVolver);
btnVolver = findViewById(R.id.btnVolver);
btnVolver.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
}
});
}}