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
132ef5d7
Commit
132ef5d7
authored
Feb 16, 2024
by
m-spi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init2
parent
23dec42f
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
455 additions
and
31 deletions
+455
-31
build.gradle.kts
app/build.gradle.kts
+9
-2
ExampleInstrumentedTest.kt
...t/java/com/example/elbuenopeso/ExampleInstrumentedTest.kt
+24
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+5
-10
MainActivity.kt
app/src/main/java/com/example/elbuenopeso/MainActivity.kt
+35
-0
DashboardFragment.kt
...com/example/elbuenopeso/ui/dashboard/DashboardFragment.kt
+42
-0
DashboardViewModel.kt
...om/example/elbuenopeso/ui/dashboard/DashboardViewModel.kt
+13
-0
HomeFragment.kt
...main/java/com/example/elbuenopeso/ui/home/HomeFragment.kt
+42
-0
HomeViewModel.kt
...ain/java/com/example/elbuenopeso/ui/home/HomeViewModel.kt
+13
-0
NotificationsFragment.kt
...ple/elbuenopeso/ui/notifications/NotificationsFragment.kt
+42
-0
NotificationsViewModel.kt
...le/elbuenopeso/ui/notifications/NotificationsViewModel.kt
+13
-0
ic_dashboard_black_24dp.xml
app/src/main/res/drawable/ic_dashboard_black_24dp.xml
+9
-0
ic_home_black_24dp.xml
app/src/main/res/drawable/ic_home_black_24dp.xml
+9
-0
ic_notifications_black_24dp.xml
app/src/main/res/drawable/ic_notifications_black_24dp.xml
+9
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+23
-8
fragment_dashboard.xml
app/src/main/res/layout/fragment_dashboard.xml
+22
-0
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+22
-0
fragment_notifications.xml
app/src/main/res/layout/fragment_notifications.xml
+22
-0
bottom_nav_menu.xml
app/src/main/res/menu/bottom_nav_menu.xml
+19
-0
mobile_navigation.xml
app/src/main/res/navigation/mobile_navigation.xml
+25
-0
themes.xml
app/src/main/res/values-night/themes.xml
+12
-3
colors.xml
app/src/main/res/values/colors.xml
+5
-0
dimens.xml
app/src/main/res/values/dimens.xml
+5
-0
strings.xml
app/src/main/res/values/strings.xml
+4
-1
themes.xml
app/src/main/res/values/themes.xml
+12
-5
ExampleUnitTest.kt
app/src/test/java/com/example/elbuenopeso/ExampleUnitTest.kt
+17
-0
gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
settings.gradle.kts
settings.gradle.kts
+1
-1
No files found.
app/build.gradle.kts
View file @
132ef5d7
...
...
@@ -4,11 +4,11 @@ plugins {
}
android
{
namespace
=
"com.example.
leboncoin
"
namespace
=
"com.example.
elbuenopeso
"
compileSdk
=
34
defaultConfig
{
applicationId
=
"com.example.
leboncoin
"
applicationId
=
"com.example.
elbuenopeso
"
minSdk
=
27
targetSdk
=
34
versionCode
=
1
...
...
@@ -33,6 +33,9 @@ android {
kotlinOptions
{
jvmTarget
=
"1.8"
}
buildFeatures
{
viewBinding
=
true
}
}
dependencies
{
...
...
@@ -41,6 +44,10 @@ dependencies {
implementation
(
"androidx.appcompat:appcompat:1.6.1"
)
implementation
(
"com.google.android.material:material:1.11.0"
)
implementation
(
"androidx.constraintlayout:constraintlayout:2.1.4"
)
implementation
(
"androidx.lifecycle:lifecycle-livedata-ktx:2.7.0"
)
implementation
(
"androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
)
implementation
(
"androidx.navigation:navigation-fragment-ktx:2.7.7"
)
implementation
(
"androidx.navigation:navigation-ui-ktx:2.7.7"
)
testImplementation
(
"junit:junit:4.13.2"
)
androidTestImplementation
(
"androidx.test.ext:junit:1.1.5"
)
androidTestImplementation
(
"androidx.test.espresso:espresso-core:3.5.1"
)
...
...
app/src/androidTest/java/com/example/elbuenopeso/ExampleInstrumentedTest.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso
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.elbuenopeso"
,
appContext
.
packageName
)
}
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
132ef5d7
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
>
xmlns:tools=
"http://schemas.android.com/tools"
>
<application
android:allowBackup=
"true"
...
...
@@ -10,17 +10,12 @@
android:label=
"@string/app_name"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.LeBonCoin"
tools:targetApi=
"31"
>
<activity
android:name=
".galerie"
android:exported=
"false"
/>
<activity
android:name=
".ajout"
android:exported=
"false"
/>
android:theme=
"@style/Theme.ElBuenoPeso"
tools:targetApi=
"31"
>
<activity
android:name=
".MainActivity"
android:exported=
"true"
>
android:exported=
"true"
android:label=
"@string/app_name"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
app/src/main/java/com/example/elbuenopeso/MainActivity.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso
import
android.os.Bundle
import
com.google.android.material.bottomnavigation.BottomNavigationView
import
androidx.appcompat.app.AppCompatActivity
import
androidx.navigation.findNavController
import
androidx.navigation.ui.AppBarConfiguration
import
androidx.navigation.ui.setupActionBarWithNavController
import
androidx.navigation.ui.setupWithNavController
import
com.example.elbuenopeso.databinding.ActivityMainBinding
class
MainActivity
:
AppCompatActivity
()
{
private
lateinit
var
binding
:
ActivityMainBinding
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
binding
=
ActivityMainBinding
.
inflate
(
layoutInflater
)
setContentView
(
binding
.
root
)
val
navView
:
BottomNavigationView
=
binding
.
navView
val
navController
=
findNavController
(
R
.
id
.
nav_host_fragment_activity_main
)
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
val
appBarConfiguration
=
AppBarConfiguration
(
setOf
(
R
.
id
.
navigation_home
,
R
.
id
.
navigation_dashboard
,
R
.
id
.
navigation_notifications
)
)
setupActionBarWithNavController
(
navController
,
appBarConfiguration
)
navView
.
setupWithNavController
(
navController
)
}
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/dashboard/DashboardFragment.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.dashboard
import
android.os.Bundle
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.TextView
import
androidx.fragment.app.Fragment
import
androidx.lifecycle.ViewModelProvider
import
com.example.elbuenopeso.databinding.FragmentDashboardBinding
class
DashboardFragment
:
Fragment
()
{
private
var
_binding
:
FragmentDashboardBinding
?
=
null
// This property is only valid between onCreateView and
// onDestroyView.
private
val
binding
get
()
=
_binding
!!
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?,
savedInstanceState
:
Bundle
?
):
View
{
val
dashboardViewModel
=
ViewModelProvider
(
this
).
get
(
DashboardViewModel
::
class
.
java
)
_binding
=
FragmentDashboardBinding
.
inflate
(
inflater
,
container
,
false
)
val
root
:
View
=
binding
.
root
val
textView
:
TextView
=
binding
.
textDashboard
dashboardViewModel
.
text
.
observe
(
viewLifecycleOwner
)
{
textView
.
text
=
it
}
return
root
}
override
fun
onDestroyView
()
{
super
.
onDestroyView
()
_binding
=
null
}
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/dashboard/DashboardViewModel.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.dashboard
import
androidx.lifecycle.LiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
class
DashboardViewModel
:
ViewModel
()
{
private
val
_text
=
MutableLiveData
<
String
>().
apply
{
value
=
"This is dashboard Fragment"
}
val
text
:
LiveData
<
String
>
=
_text
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/home/HomeFragment.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.home
import
android.os.Bundle
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.TextView
import
androidx.fragment.app.Fragment
import
androidx.lifecycle.ViewModelProvider
import
com.example.elbuenopeso.databinding.FragmentHomeBinding
class
HomeFragment
:
Fragment
()
{
private
var
_binding
:
FragmentHomeBinding
?
=
null
// This property is only valid between onCreateView and
// onDestroyView.
private
val
binding
get
()
=
_binding
!!
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?,
savedInstanceState
:
Bundle
?
):
View
{
val
homeViewModel
=
ViewModelProvider
(
this
).
get
(
HomeViewModel
::
class
.
java
)
_binding
=
FragmentHomeBinding
.
inflate
(
inflater
,
container
,
false
)
val
root
:
View
=
binding
.
root
val
textView
:
TextView
=
binding
.
textHome
homeViewModel
.
text
.
observe
(
viewLifecycleOwner
)
{
textView
.
text
=
it
}
return
root
}
override
fun
onDestroyView
()
{
super
.
onDestroyView
()
_binding
=
null
}
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/home/HomeViewModel.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.home
import
androidx.lifecycle.LiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
class
HomeViewModel
:
ViewModel
()
{
private
val
_text
=
MutableLiveData
<
String
>().
apply
{
value
=
"This is home Fragment"
}
val
text
:
LiveData
<
String
>
=
_text
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/notifications/NotificationsFragment.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.notifications
import
android.os.Bundle
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.TextView
import
androidx.fragment.app.Fragment
import
androidx.lifecycle.ViewModelProvider
import
com.example.elbuenopeso.databinding.FragmentNotificationsBinding
class
NotificationsFragment
:
Fragment
()
{
private
var
_binding
:
FragmentNotificationsBinding
?
=
null
// This property is only valid between onCreateView and
// onDestroyView.
private
val
binding
get
()
=
_binding
!!
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?,
savedInstanceState
:
Bundle
?
):
View
{
val
notificationsViewModel
=
ViewModelProvider
(
this
).
get
(
NotificationsViewModel
::
class
.
java
)
_binding
=
FragmentNotificationsBinding
.
inflate
(
inflater
,
container
,
false
)
val
root
:
View
=
binding
.
root
val
textView
:
TextView
=
binding
.
textNotifications
notificationsViewModel
.
text
.
observe
(
viewLifecycleOwner
)
{
textView
.
text
=
it
}
return
root
}
override
fun
onDestroyView
()
{
super
.
onDestroyView
()
_binding
=
null
}
}
\ No newline at end of file
app/src/main/java/com/example/elbuenopeso/ui/notifications/NotificationsViewModel.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso.ui.notifications
import
androidx.lifecycle.LiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
class
NotificationsViewModel
:
ViewModel
()
{
private
val
_text
=
MutableLiveData
<
String
>().
apply
{
value
=
"This is notifications Fragment"
}
val
text
:
LiveData
<
String
>
=
_text
}
\ No newline at end of file
app/src/main/res/drawable/ic_dashboard_black_24dp.xml
0 → 100644
View file @
132ef5d7
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#FF000000"
android:pathData=
"M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z"
/>
</vector>
app/src/main/res/drawable/ic_home_black_24dp.xml
0 → 100644
View file @
132ef5d7
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#FF000000"
android:pathData=
"M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"
/>
</vector>
app/src/main/res/drawable/ic_notifications_black_24dp.xml
0 → 100644
View file @
132ef5d7
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#FF000000"
android:pathData=
"M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z"
/>
</vector>
app/src/main/res/layout/activity_main.xml
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:id=
"@+id/container
"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MainActivity
"
>
android:paddingTop=
"?attr/actionBarSize
"
>
<TextView
android:layout_width=
"wrap_content"
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id=
"@+id/nav_view"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"Hello World!"
android:layout_marginStart=
"0dp"
android:layout_marginEnd=
"0dp"
android:background=
"?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:menu=
"@menu/bottom_nav_menu"
/>
<fragment
android:id=
"@+id/nav_host_fragment_activity_main"
android:name=
"androidx.navigation.fragment.NavHostFragment"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
app:defaultNavHost=
"true"
app:layout_constraintBottom_toTopOf=
"@id/nav_view"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:navGraph=
"@navigation/mobile_navigation"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_dashboard.xml
0 → 100644
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=
".ui.dashboard.DashboardFragment"
>
<TextView
android:id=
"@+id/text_dashboard"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"8dp"
android:textAlignment=
"center"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_home.xml
0 → 100644
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=
".ui.home.HomeFragment"
>
<TextView
android:id=
"@+id/text_home"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"8dp"
android:textAlignment=
"center"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_notifications.xml
0 → 100644
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=
".ui.notifications.NotificationsFragment"
>
<TextView
android:id=
"@+id/text_notifications"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"8dp"
android:textAlignment=
"center"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/menu/bottom_nav_menu.xml
0 → 100644
View file @
132ef5d7
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:id=
"@+id/navigation_home"
android:icon=
"@drawable/ic_home_black_24dp"
android:title=
"@string/title_home"
/>
<item
android:id=
"@+id/navigation_dashboard"
android:icon=
"@drawable/ic_dashboard_black_24dp"
android:title=
"@string/title_dashboard"
/>
<item
android:id=
"@+id/navigation_notifications"
android:icon=
"@drawable/ic_notifications_black_24dp"
android:title=
"@string/title_notifications"
/>
</menu>
\ No newline at end of file
app/src/main/res/navigation/mobile_navigation.xml
0 → 100644
View file @
132ef5d7
<?xml version="1.0" encoding="utf-8"?>
<navigation
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:id=
"@+id/mobile_navigation"
app:startDestination=
"@+id/navigation_home"
>
<fragment
android:id=
"@+id/navigation_home"
android:name=
"com.example.elbuenopeso.ui.home.HomeFragment"
android:label=
"@string/title_home"
tools:layout=
"@layout/fragment_home"
/>
<fragment
android:id=
"@+id/navigation_dashboard"
android:name=
"com.example.elbuenopeso.ui.dashboard.DashboardFragment"
android:label=
"@string/title_dashboard"
tools:layout=
"@layout/fragment_dashboard"
/>
<fragment
android:id=
"@+id/navigation_notifications"
android:name=
"com.example.elbuenopeso.ui.notifications.NotificationsFragment"
android:label=
"@string/title_notifications"
tools:layout=
"@layout/fragment_notifications"
/>
</navigation>
\ No newline at end of file
app/src/main/res/values-night/themes.xml
View file @
132ef5d7
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<!-- Base application theme. -->
<style
name=
"Base.Theme.LeBonCoin"
parent=
"Theme.Material3.DayNight.NoActionBar"
>
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
<style
name=
"Theme.ElBuenoPeso"
parent=
"Theme.MaterialComponents.DayNight.DarkActionBar"
>
<!-- Primary brand color. -->
<item
name=
"colorPrimary"
>
@color/purple_200
</item>
<item
name=
"colorPrimaryVariant"
>
@color/purple_700
</item>
<item
name=
"colorOnPrimary"
>
@color/black
</item>
<!-- Secondary brand color. -->
<item
name=
"colorSecondary"
>
@color/teal_200
</item>
<item
name=
"colorSecondaryVariant"
>
@color/teal_200
</item>
<item
name=
"colorOnSecondary"
>
@color/black
</item>
<!-- Status bar color. -->
<item
name=
"android:statusBarColor"
>
?attr/colorPrimaryVariant
</item>
<!-- Customize your theme here. -->
</style>
</resources>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
132ef5d7
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"purple_200"
>
#FFBB86FC
</color>
<color
name=
"purple_500"
>
#FF6200EE
</color>
<color
name=
"purple_700"
>
#FF3700B3
</color>
<color
name=
"teal_200"
>
#FF03DAC5
</color>
<color
name=
"teal_700"
>
#FF018786
</color>
<color
name=
"black"
>
#FF000000
</color>
<color
name=
"white"
>
#FFFFFFFF
</color>
</resources>
\ No newline at end of file
app/src/main/res/values/dimens.xml
0 → 100644
View file @
132ef5d7
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen
name=
"activity_horizontal_margin"
>
16dp
</dimen>
<dimen
name=
"activity_vertical_margin"
>
16dp
</dimen>
</resources>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
132ef5d7
<resources>
<string
name=
"app_name"
>
LeBonCoin
</string>
<string
name=
"app_name"
>
ElBuenoPeso
</string>
<string
name=
"title_home"
>
Home
</string>
<string
name=
"title_dashboard"
>
Dashboard
</string>
<string
name=
"title_notifications"
>
Notifications
</string>
</resources>
\ No newline at end of file
app/src/main/res/values/themes.xml
View file @
132ef5d7
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<!-- Base application theme. -->
<style
name=
"Base.Theme.LeBonCoin"
parent=
"Theme.Material3.DayNight.NoActionBar"
>
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
<style
name=
"Theme.ElBuenoPeso"
parent=
"Theme.MaterialComponents.DayNight.DarkActionBar"
>
<!-- Primary brand color. -->
<item
name=
"colorPrimary"
>
@color/purple_500
</item>
<item
name=
"colorPrimaryVariant"
>
@color/purple_700
</item>
<item
name=
"colorOnPrimary"
>
@color/white
</item>
<!-- Secondary brand color. -->
<item
name=
"colorSecondary"
>
@color/teal_200
</item>
<item
name=
"colorSecondaryVariant"
>
@color/teal_700
</item>
<item
name=
"colorOnSecondary"
>
@color/black
</item>
<!-- Status bar color. -->
<item
name=
"android:statusBarColor"
>
?attr/colorPrimaryVariant
</item>
<!-- Customize your theme here. -->
</style>
<style
name=
"Theme.LeBonCoin"
parent=
"Base.Theme.LeBonCoin"
/>
</resources>
\ No newline at end of file
app/src/test/java/com/example/elbuenopeso/ExampleUnitTest.kt
0 → 100644
View file @
132ef5d7
package
com.example.elbuenopeso
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
gradle/wrapper/gradle-wrapper.properties
View file @
132ef5d7
#Fri Feb 16
08:13:3
1 CET 2024
#Fri Feb 16
11:34:0
1 CET 2024
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-8.2-bin.zip
...
...
settings.gradle.kts
View file @
132ef5d7
...
...
@@ -13,6 +13,6 @@ dependencyResolutionManagement {
}
}
rootProject
.
name
=
"
LeBonCoin
"
rootProject
.
name
=
"
ElBuenoPeso
"
include
(
":app"
)
\ 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