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
a90963cf
Commit
a90963cf
authored
Feb 17, 2024
by
Timothé KOBAK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
78f44799
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
10 deletions
+48
-10
gradle.xml
.idea/gradle.xml
+1
-0
misc.xml
.idea/misc.xml
+0
-1
DashboardFragment.kt
...com/example/elbuenopeso/ui/dashboard/DashboardFragment.kt
+11
-0
HomeViewModel.kt
...ain/java/com/example/elbuenopeso/ui/home/HomeViewModel.kt
+1
-1
baseline_add_24.xml
app/src/main/res/drawable/baseline_add_24.xml
+5
-0
marketplace.jpg
app/src/main/res/drawable/marketplace.jpg
+0
-0
fragment_dashboard.xml
app/src/main/res/layout/fragment_dashboard.xml
+10
-0
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+15
-3
bottom_nav_menu.xml
app/src/main/res/menu/bottom_nav_menu.xml
+3
-3
themes.xml
app/src/main/res/values/themes.xml
+2
-2
No files found.
.idea/gradle.xml
View file @
a90963cf
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"GradleMigrationSettings"
migrationVersion=
"1"
/>
<component
name=
"GradleSettings"
>
<option
name=
"linkedExternalProjectsSettings"
>
<GradleProjectSettings>
...
...
.idea/misc.xml
View file @
a90963cf
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ExternalStorageConfigurationManager"
enabled=
"true"
/>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_17"
default=
"true"
project-jdk-name=
"jbr-17"
project-jdk-type=
"JavaSDK"
>
...
...
app/src/main/java/com/example/elbuenopeso/ui/dashboard/DashboardFragment.kt
View file @
a90963cf
package
com.example.elbuenopeso.ui.dashboard
import
android.os.Bundle
import
android.util.Log
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
androidx.navigation.fragment.findNavController
import
com.example.elbuenopeso.databinding.FragmentDashboardBinding
class
DashboardFragment
:
Fragment
()
{
...
...
@@ -32,6 +34,15 @@ class DashboardFragment : Fragment() {
dashboardViewModel
.
text
.
observe
(
viewLifecycleOwner
)
{
textView
.
text
=
it
}
binding
.
button6
.
setOnClickListener
{
// TODO
}
return
root
}
...
...
app/src/main/java/com/example/elbuenopeso/ui/home/HomeViewModel.kt
View file @
a90963cf
...
...
@@ -7,7 +7,7 @@ import androidx.lifecycle.ViewModel
class
HomeViewModel
:
ViewModel
()
{
private
val
_text
=
MutableLiveData
<
String
>().
apply
{
value
=
"
This is home Fragment
"
value
=
"
Welcome to ElBuenoPeso !
"
}
val
text
:
LiveData
<
String
>
=
_text
}
\ No newline at end of file
app/src/main/res/drawable/baseline_add_24.xml
0 → 100644
View file @
a90963cf
<vector
android:height=
"24dp"
android:tint=
"#000000"
android:viewportHeight=
"24"
android:viewportWidth=
"24"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
/>
</vector>
app/src/main/res/drawable/marketplace.jpg
0 → 100644
View file @
a90963cf
45.2 KB
app/src/main/res/layout/fragment_dashboard.xml
View file @
a90963cf
...
...
@@ -19,4 +19,14 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<Button
android:id=
"@+id/button6"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Button"
app:layout_constraintBottom_toTopOf=
"@+id/text_dashboard"
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
View file @
a90963cf
...
...
@@ -6,17 +6,29 @@
android:layout_height=
"match_parent"
tools:context=
".ui.home.HomeFragment"
>
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"wrap_content"
android:layout_height=
"354dp"
android:src=
"@drawable/marketplace"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<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"
android:textSize=
"24sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"@+id/imageView"
app:layout_constraintVertical_bias=
"0.051"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/menu/bottom_nav_menu.xml
View file @
a90963cf
...
...
@@ -9,11 +9,11 @@
<item
android:id=
"@+id/navigation_dashboard"
android:icon=
"@drawable/ic_dashboard_black_24dp"
android:title=
"
@string/title_dashboard
"
/>
android:title=
"
Market
"
/>
<item
android:id=
"@+id/navigation_notifications"
android:icon=
"@drawable/
ic_notifications_black_24dp
"
android:title=
"
@string/title_notifications
"
/>
android:icon=
"@drawable/
baseline_add_24
"
android:title=
"
Add
"
/>
</menu>
\ No newline at end of file
app/src/main/res/values/themes.xml
View file @
a90963cf
...
...
@@ -2,8 +2,8 @@
<!-- Base application theme. -->
<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=
"colorPrimary"
>
@color/
navy
</item>
<item
name=
"colorPrimaryVariant"
>
@color/
bluee
</item>
<item
name=
"colorOnPrimary"
>
@color/white
</item>
<!-- Secondary brand color. -->
<item
name=
"colorSecondary"
>
@color/teal_200
</item>
...
...
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