Skip to content
Snippets Groups Projects
Commit b11dd4eb authored by Romain Gabet's avatar Romain Gabet :speech_balloon:
Browse files

Q3

parent ba253051
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
......@@ -42,7 +43,11 @@ public class VueGenerale extends Fragment {
view.findViewById(R.id.btnToListe).setOnClickListener(view1 -> {
// TODO Q3
TextView tvlogin = (TextView) getActivity().findViewById(R.id.tvLogin);
model.setUsername(tvlogin.getText().toString());
Toast.makeText(getContext(), "Login : " + tvlogin.getText().toString(), Toast.LENGTH_LONG).show();
NavHostFragment.findNavController(VueGenerale.this).navigate(R.id.generale_to_liste);
});
// TODO Q5.b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment