Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
m4104_2021_ctp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Enzo Cocchi
m4104_2021_ctp
Commits
a7087024
Commit
a7087024
authored
4 years ago
by
Enzo
Browse files
Options
Downloads
Patches
Plain Diff
Q4
parent
956ea710
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/fr/ulille/iutinfo/teletp/VueGenerale.java
+9
-1
9 additions, 1 deletion
app/src/main/java/fr/ulille/iutinfo/teletp/VueGenerale.java
with
9 additions
and
1 deletion
app/src/main/java/fr/ulille/iutinfo/teletp/VueGenerale.java
+
9
−
1
View file @
a7087024
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment