Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uv-amse-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lucas NAURY
uv-amse-android
Commits
7df0974e
Commit
7df0974e
authored
Feb 16, 2024
by
Lucas NAURY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Données d'annonces basiques
parent
5611d51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
MainActivity.java
app/src/main/java/com/example/tpleboncoin/MainActivity.java
+11
-0
No files found.
app/src/main/java/com/example/tpleboncoin/MainActivity.java
View file @
7df0974e
...
...
@@ -2,6 +2,7 @@ package com.example.tpleboncoin;
import
android.os.Bundle
;
import
com.example.tpleboncoin.models.Annonce
;
import
com.google.android.material.bottomnavigation.BottomNavigationView
;
import
androidx.appcompat.app.AppCompatActivity
;
...
...
@@ -12,6 +13,9 @@ import androidx.navigation.ui.NavigationUI;
import
com.example.tpleboncoin.databinding.ActivityMainBinding
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
MainActivity
extends
AppCompatActivity
{
private
ActivityMainBinding
binding
;
...
...
@@ -20,6 +24,13 @@ public class MainActivity extends AppCompatActivity {
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
ArrayList
<
Annonce
>
annonces
=
new
ArrayList
<
Annonce
>();
annonces
.
add
(
new
Annonce
(
"Annonce 1"
,
"43 rue du test"
,
12
,
12.3
));
annonces
.
add
(
new
Annonce
(
"Annonce 2"
,
"12 rue du android"
,
14
,
9.3
));
annonces
.
add
(
new
Annonce
(
"Annonce 3"
,
"98 avenue du test"
,
11
,
0.3
));
annonces
.
add
(
new
Annonce
(
"Annonce 4"
,
"17 boulevard du test"
,
10
,
120.3
));
binding
=
ActivityMainBinding
.
inflate
(
getLayoutInflater
());
setContentView
(
binding
.
getRoot
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment