Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElBuenoPeso
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
Merge Requests
0
Merge Requests
0
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
Matis SPINELLI
ElBuenoPeso
Commits
f784b1f2
Commit
f784b1f2
authored
Feb 16, 2024
by
m-spi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset Done
parent
132ef5d7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
148 deletions
+0
-148
ExampleInstrumentedTest.kt
...est/java/com/example/leboncoin/ExampleInstrumentedTest.kt
+0
-24
MainActivity.kt
app/src/main/java/com/example/leboncoin/MainActivity.kt
+0
-51
ajout.kt
app/src/main/java/com/example/leboncoin/ajout.kt
+0
-20
galerie.kt
app/src/main/java/com/example/leboncoin/galerie.kt
+0
-27
activity_ajout1.xml
app/src/main/res/layout/activity_ajout1.xml
+0
-9
ExampleUnitTest.kt
app/src/test/java/com/example/leboncoin/ExampleUnitTest.kt
+0
-17
No files found.
app/src/androidTest/java/com/example/leboncoin/ExampleInstrumentedTest.kt
deleted
100644 → 0
View file @
132ef5d7
package
com.example.leboncoin
import
androidx.test.platform.app.InstrumentationRegistry
import
androidx.test.ext.junit.runners.AndroidJUnit4
import
org.junit.Test
import
org.junit.runner.RunWith
import
org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith
(
AndroidJUnit4
::
class
)
class
ExampleInstrumentedTest
{
@Test
fun
useAppContext
()
{
// Context of the app under test.
val
appContext
=
InstrumentationRegistry
.
getInstrumentation
().
targetContext
assertEquals
(
"com.example.leboncoin"
,
appContext
.
packageName
)
}
}
\ No newline at end of file
app/src/main/java/com/example/leboncoin/MainActivity.kt
deleted
100644 → 0
View file @
132ef5d7
package
com.example.leboncoin
import
android.content.Intent
import
android.os.Bundle
import
android.widget.Button
import
android.widget.EditText
import
android.widget.LinearLayout
import
android.widget.TextView
import
androidx.appcompat.app.AppCompatActivity
class
MainActivity
:
AppCompatActivity
()
{
public
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
val
l1
=
LinearLayout
(
this
)
l1
.
orientation
=
LinearLayout
.
VERTICAL
val
t1
=
TextView
(
this
)
t1
.
text
=
"Bienvenue sur LeBonCoin!"
l1
.
addView
(
t1
)
val
t
=
EditText
(
this
)
val
b
=
Button
(
this
)
b
.
text
=
"Acceder à la galerie"
b
.
height
=
200
b
.
setOnClickListener
{
val
lancementSecondeActivite
=
Intent
(
this
@MainActivity
,
galerie
::
class
.
java
)
startActivity
(
lancementSecondeActivite
)
}
val
c
=
Button
(
this
)
c
.
text
=
"Ajouter un truc"
c
.
height
=
200
c
.
setOnClickListener
{
val
lancementTroisiemeActivite
=
Intent
(
this
@MainActivity
,
ajout
::
class
.
java
)
startActivity
(
lancementTroisiemeActivite
)
}
l1
.
addView
(
t
)
l1
.
addView
(
b
)
l1
.
addView
(
c
)
setContentView
(
l1
)
}
}
\ No newline at end of file
app/src/main/java/com/example/leboncoin/ajout.kt
deleted
100644 → 0
View file @
132ef5d7
package
com.example.leboncoin
import
android.hardware.Sensor
import
android.hardware.SensorManager
import
android.os.Bundle
import
android.widget.LinearLayout
import
android.widget.TextView
import
androidx.appcompat.app.AppCompatActivity
class
ajout
:
AppCompatActivity
()
{
public
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
val
l1
=
LinearLayout
(
this
)
l1
.
orientation
=
LinearLayout
.
VERTICAL
val
t1
=
TextView
(
this
)
t1
.
text
=
"Bienvenue sur LeBonCoin!"
l1
.
addView
(
t1
)
setContentView
(
l1
)
}
}
app/src/main/java/com/example/leboncoin/galerie.kt
deleted
100644 → 0
View file @
132ef5d7
package
com.example.leboncoin
import
android.os.Bundle
import
android.app.Activity
import
android.hardware.Sensor
import
android.hardware.SensorEvent
import
android.hardware.SensorEventListener
import
android.hardware.SensorManager
import
android.util.Log
import
android.widget.EditText
import
android.widget.LinearLayout
import
android.widget.TextView
import
androidx.appcompat.app.AppCompatActivity
class
galerie
:
AppCompatActivity
()
{
public
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
val
l1
=
LinearLayout
(
this
)
l1
.
orientation
=
LinearLayout
.
VERTICAL
val
t1
=
TextView
(
this
)
t1
.
text
=
"Bienvenue sur 2!"
l1
.
addView
(
t1
)
setContentView
(
l1
)
}
}
app/src/main/res/layout/activity_ajout1.xml
deleted
100644 → 0
View file @
132ef5d7
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".ajout1"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/test/java/com/example/leboncoin/ExampleUnitTest.kt
deleted
100644 → 0
View file @
132ef5d7
package
com.example.leboncoin
import
org.junit.Test
import
org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class
ExampleUnitTest
{
@Test
fun
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
)
}
}
\ No newline at end of file
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