parent
74706288b1
commit
477cf4deb6
@ -1,6 +1,6 @@
|
|||||||
package uca.baptistearthur.geocaching.model
|
package uca.baptistearthur.geocaching.model
|
||||||
|
|
||||||
data class Place(
|
data class Place(
|
||||||
val latitude : Long,
|
val latitude: Double,
|
||||||
val longitude : Long
|
val longitude: Double
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
package uca.baptistearthur.geocaching.model
|
package uca.baptistearthur.geocaching.model
|
||||||
|
|
||||||
|
import java.util.Date
|
||||||
|
|
||||||
class Stub {
|
class Stub {
|
||||||
|
|
||||||
|
fun load(): List<RoadTrip> {
|
||||||
|
return listOf(
|
||||||
|
RoadTrip("France", Date(), listOf(Place(48.866667, 2.333333), Place(48.866667, 2.333333)) as ArrayList<Place>),
|
||||||
|
RoadTrip("Italie", Date(), listOf(Place(52.866667, 4.333333), Place(48.866667, 2.333333)) as ArrayList<Place>),
|
||||||
|
RoadTrip("Allemagne", Date(), listOf(Place(37.866667, 3.333333)) as ArrayList<Place>),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
Loading…
Reference in new issue