Skip to content
Snippets Groups Projects
Commit a7087024 authored by Enzo's avatar Enzo
Browse files

Q4

parent 956ea710
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,10 @@ import android.os.Bundle; ...@@ -4,7 +4,10 @@ import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.EditText; import android.widget.EditText;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
...@@ -35,7 +38,12 @@ public class VueGenerale extends Fragment { ...@@ -35,7 +38,12 @@ public class VueGenerale extends Fragment {
poste = ""; poste = "";
salle = DISTANCIEL; salle = DISTANCIEL;
model = new ViewModelProvider(requireActivity()).get(SuiviViewModel.class); model = new ViewModelProvider(requireActivity()).get(SuiviViewModel.class);
// TODO Q4
Spinner spinSalles = view.findViewById(R.id.spSalle);
spinSalles.setAdapter(ArrayAdapter.createFromResource(getContext(),R.array.list_salles,0));
Spinner spinPostes = view.findViewById(R.id.spPoste);
spinPostes.setAdapter(ArrayAdapter.createFromResource(getContext(),R.array.list_postes,0));
view.findViewById(R.id.btnToListe).setOnClickListener(view1 -> { view.findViewById(R.id.btnToListe).setOnClickListener(view1 -> {
EditText tvLogin = getActivity().findViewById(R.id.tvLogin); EditText tvLogin = getActivity().findViewById(R.id.tvLogin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment