package com.example.ui.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.example.agenda.R;
public class FormularioAlunoActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_formulario_aluno);
Toast.makeText(FormularioAlunoActivity.this,"texte",Toast.LENGTH_LONG).show();
final TextView campoNomeAluno = findViewById(R.id.activity_formulario_aluno_nome_aluno);
final TextView campoNomeTelefone = findViewById(R.id.activity_formulario_aluno_telefone_aluno);
final TextView campoNomeEmail = findViewById(R.id.activity_formulario_aluno_email_aluno);
Button botaoSalvar = findViewById(R.id.activity_formulario_aluno_botao_salvar_aluno);
botaoSalvar.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(FormularioAlunoActivity.this,"teste",Toast.LENGTH_LONG).show();
}
});
}
}