Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctp android
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
Aymane Ismail
ctp android
Commits
85174370
Commit
85174370
authored
3 years ago
by
Aymane Ismail
Browse files
Options
Downloads
Patches
Plain Diff
partie3
parent
a727f4be
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/com/example/ctp/MainActivity.java
+9
-1
9 additions, 1 deletion
app/src/main/java/com/example/ctp/MainActivity.java
app/src/main/res/layout/activity_main.xml
+13
-0
13 additions, 0 deletions
app/src/main/res/layout/activity_main.xml
with
22 additions
and
1 deletion
app/src/main/java/com/example/ctp/MainActivity.java
+
9
−
1
View file @
85174370
...
@@ -116,11 +116,19 @@ public class MainActivity extends AppCompatActivity {
...
@@ -116,11 +116,19 @@ public class MainActivity extends AppCompatActivity {
TextView
limiteDate
=
findViewById
(
R
.
id
.
date
);
TextView
limiteDate
=
findViewById
(
R
.
id
.
date
);
Date
date
=
candidatures
[
active
].
limite
;
Date
date
=
candidatures
[
active
].
limite
;
limiteDate
.
setText
(
date
.
toString
());
limiteDate
.
setText
(
date
.
toString
());
}
public
void
onClick
(
View
v
)
{
String
url
=
candidatures
[
active
].
web
;
Intent
i
=
new
Intent
(
Intent
.
ACTION_VIEW
);
i
.
setData
(
Uri
.
parse
(
url
));
startActivity
(
i
);
}
}
public
void
next
(
View
view
)
{
public
void
next
(
View
view
)
{
if
(
active
<
candidatures
.
length
-
1
)
{
if
(
active
<
candidatures
.
length
-
1
)
{
active
++;
active
++;
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_main.xml
+
13
−
0
View file @
85174370
...
@@ -114,6 +114,19 @@
...
@@ -114,6 +114,19 @@
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.273"
/>
app:layout_constraintVertical_bias=
"0.273"
/>
<Button
android:id=
"@+id/web"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:onClick=
"onClick"
android:text=
"web"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.922"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.382"
/>
<Button
<Button
android:id=
"@+id/Prev"
android:id=
"@+id/Prev"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
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