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
7f23187c
Commit
7f23187c
authored
Feb 17, 2024
by
Timothé KOBAK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
6c2fff6d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
10 deletions
+27
-10
MainActivity.kt
app/src/main/java/com/example/elbuenopeso/MainActivity.kt
+1
-0
slide_animation.xml
app/src/main/res/anim/slide_animation.xml
+9
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+3
-0
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+12
-10
bottom_nav_menu.xml
app/src/main/res/menu/bottom_nav_menu.xml
+2
-0
No files found.
app/src/main/java/com/example/elbuenopeso/MainActivity.kt
View file @
7f23187c
...
@@ -29,6 +29,7 @@ class MainActivity : AppCompatActivity() {
...
@@ -29,6 +29,7 @@ class MainActivity : AppCompatActivity() {
R
.
id
.
navigation_home
,
R
.
id
.
navigation_dashboard
,
R
.
id
.
navigation_add
R
.
id
.
navigation_home
,
R
.
id
.
navigation_dashboard
,
R
.
id
.
navigation_add
)
)
)
)
setupActionBarWithNavController
(
navController
,
appBarConfiguration
)
setupActionBarWithNavController
(
navController
,
appBarConfiguration
)
navView
.
setupWithNavController
(
navController
)
navView
.
setupWithNavController
(
navController
)
}
}
...
...
app/src/main/res/anim/slide_animation.xml
0 → 100644
View file @
7f23187c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:interpolator=
"@android:anim/linear_interpolator"
>
<translate
android:fromXDelta=
"-100%p"
android:toXDelta=
"100%p"
android:repeatCount=
"infinite"
android:duration=
"5000"
/>
</set>
app/src/main/res/layout/activity_main.xml
View file @
7f23187c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/container"
android:id=
"@+id/container"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
...
@@ -25,9 +26,11 @@
...
@@ -25,9 +26,11 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
app:defaultNavHost=
"true"
app:defaultNavHost=
"true"
app:layout_constraintBottom_toTopOf=
"@id/nav_view"
app:layout_constraintBottom_toTopOf=
"@id/nav_view"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0"
app:navGraph=
"@navigation/mobile_navigation"
/>
app:navGraph=
"@navigation/mobile_navigation"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_home.xml
View file @
7f23187c
...
@@ -10,25 +10,27 @@
...
@@ -10,25 +10,27 @@
android:id=
"@+id/imageView"
android:id=
"@+id/imageView"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"354dp"
android:layout_height=
"354dp"
android:layout_marginTop=
"4dp"
android:src=
"@drawable/marketplace"
android:src=
"@drawable/marketplace"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"
1
.0"
app:layout_constraintHorizontal_bias=
"
0
.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
<TextView
android:id=
"@+id/text_home"
android:id=
"@+id/text_home"
android:layout_width=
"match_parent"
android:layout_width=
"359dp"
android:layout_height=
"wrap_content"
android:layout_height=
"44dp"
android:layout_marginStart=
"8dp"
android:shadowColor=
"#F5A623"
android:layout_marginEnd=
"8dp"
android:shadowDx=
"12"
android:shadowDy=
"12"
android:shadowRadius=
"8"
android:textAlignment=
"center"
android:textAlignment=
"center"
android:textSize=
"24sp"
android:textSize=
"24sp"
android:textStyle=
"bold"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"
parent
"
app:layout_constraintBottom_toBottomOf=
"
@+id/imageView
"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/imageView"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.051"
/>
app:layout_constraintVertical_bias=
"0.042"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/menu/bottom_nav_menu.xml
View file @
7f23187c
...
@@ -16,4 +16,6 @@
...
@@ -16,4 +16,6 @@
android:icon=
"@drawable/baseline_add_24"
android:icon=
"@drawable/baseline_add_24"
android:title=
"Add"
/>
android:title=
"Add"
/>
</menu>
</menu>
\ 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