Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uv-amse-android
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
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
Lucas NAURY
uv-amse-android
Commits
3084ed98
Commit
3084ed98
authored
Feb 21, 2024
by
donia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detailActivity version 3
parent
bb778c5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
23 deletions
+34
-23
Annonce.java
...src/main/java/com/example/tpleboncoin/models/Annonce.java
+2
-0
activity_detail_screen.xml
app/src/main/res/layout/activity_detail_screen.xml
+32
-23
No files found.
app/src/main/java/com/example/tpleboncoin/models/Annonce.java
View file @
3084ed98
...
...
@@ -54,6 +54,7 @@ public class Annonce implements Parcelable {
parcel
.
writeDouble
(
prix
);
parcel
.
writeString
(
image
);
parcel
.
writeString
(
description
);
parcel
.
writeInt
(
id
);
}
public
static
final
Parcelable
.
Creator
<
Annonce
>
CREATOR
...
...
@@ -71,6 +72,7 @@ public class Annonce implements Parcelable {
adresse
=
in
.
readString
();
prix
=
in
.
readDouble
();
image
=
in
.
readString
();
description
=
in
.
readString
();
id
=
in
.
readInt
();
}
}
app/src/main/res/layout/activity_detail_screen.xml
View file @
3084ed98
...
...
@@ -43,10 +43,12 @@
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"0dp"
android:layout_width=
"
20
0dp"
android:layout_height=
"250dp"
android:layout_marginStart=
"28dp"
android:layout_marginTop=
"32dp"
android:layout_marginStart=
"40dp"
android:layout_marginTop=
"68dp"
app:layout_constraintEnd_toStartOf=
"@+id/smsButton"
app:layout_constraintHorizontal_bias=
"0.46"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
@@ -56,6 +58,7 @@
android:layout_height=
"42dp"
android:layout_marginStart=
"4dp"
android:layout_marginTop=
"16dp"
android:paddingLeft=
"20dp"
android:text=
"Titre"
android:textColor=
"#000000"
android:textSize=
"34sp"
...
...
@@ -66,8 +69,8 @@
android:id=
"@+id/prixTextView"
android:layout_width=
"107dp"
android:layout_height=
"0dp"
android:layout_marginTop=
"1
08
dp"
android:layout_marginEnd=
"
32
dp"
android:layout_marginTop=
"1
12
dp"
android:layout_marginEnd=
"
24
dp"
android:text=
"10,33€"
android:textAlignment=
"center"
android:textAllCaps=
"false"
...
...
@@ -83,6 +86,8 @@
android:layout_height=
"wrap_content"
android:layout_marginStart=
"4dp"
android:layout_marginTop=
"12dp"
android:paddingStart=
"20dp"
android:paddingLeft=
"20dp"
android:text=
"TextView"
android:textAlignment=
"center"
android:textColor=
"#673AB7"
...
...
@@ -93,16 +98,22 @@
<TextView
android:id=
"@+id/descriptionTextView4"
android:layout_width=
"0dp"
android:layout_height=
"130dp"
android:layout_marginStart=
"54dp"
android:layout_marginTop=
"28dp"
android:layout_marginEnd=
"54dp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"25dp"
android:layout_marginBottom=
"16dp"
android:paddingStart=
"20dp"
android:paddingTop=
"10dp"
android:paddingEnd=
"25dp"
android:paddingRight=
"20dp"
android:text=
"TextView"
android:textAlignment=
"center"
android:textAllCaps=
"false"
android:textColor=
"#000000"
android:textColor=
"#9F000000"
android:textSize=
"16sp"
android:textStyle=
"italic"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toStartOf=
"parent"
...
...
@@ -110,25 +121,23 @@
<Button
android:id=
"@+id/smsButton"
android:layout_width=
"13
1
dp"
android:layout_height=
"
47
dp"
android:layout_margin
Start=
"144
dp"
android:layout_margin
Top=
"2
6dp"
android:layout_margin
End=
"10
dp"
android:layout_width=
"13
5
dp"
android:layout_height=
"
64
dp"
android:layout_margin
Top=
"20
dp"
android:layout_margin
End=
"1
6dp"
android:layout_margin
Bottom=
"203
dp"
android:paddingLeft=
"10dp"
android:paddingTop=
"5dp"
android:paddingEnd=
"5dp"
android:paddingRight=
"5dp"
android:paddingBottom=
"5dp"
android:text=
"Contacter"
android:textSize=
"11sp"
app:icon=
"@drawable/baseline_message_24"
app:layout_constraintBottom_toTopOf=
"@+id/titreTextView"
app:layout_constraintEnd_toEndOf=
"@+id/prixTextView"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toEndOf=
"@+id/imageView"
app:layout_constraintTop_toBottomOf=
"@+id/prixTextView"
app:layout_constraintVertical_bias=
"0.0"
/>
app:layout_constraintBottom_toTopOf=
"@+id/descriptionTextView4"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/prixTextView"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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