Commit 3084ed98 authored by donia's avatar donia

detailActivity version 3

parent bb778c5b
...@@ -54,6 +54,7 @@ public class Annonce implements Parcelable { ...@@ -54,6 +54,7 @@ public class Annonce implements Parcelable {
parcel.writeDouble(prix); parcel.writeDouble(prix);
parcel.writeString(image); parcel.writeString(image);
parcel.writeString(description);
parcel.writeInt(id); parcel.writeInt(id);
} }
public static final Parcelable.Creator<Annonce> CREATOR public static final Parcelable.Creator<Annonce> CREATOR
...@@ -71,6 +72,7 @@ public class Annonce implements Parcelable { ...@@ -71,6 +72,7 @@ public class Annonce implements Parcelable {
adresse = in.readString(); adresse = in.readString();
prix = in.readDouble(); prix = in.readDouble();
image = in.readString(); image = in.readString();
description = in.readString();
id = in.readInt(); id = in.readInt();
} }
} }
...@@ -43,10 +43,12 @@ ...@@ -43,10 +43,12 @@
<ImageView <ImageView
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="0dp" android:layout_width="200dp"
android:layout_height="250dp" android:layout_height="250dp"
android:layout_marginStart="28dp" android:layout_marginStart="40dp"
android:layout_marginTop="32dp" android:layout_marginTop="68dp"
app:layout_constraintEnd_toStartOf="@+id/smsButton"
app:layout_constraintHorizontal_bias="0.46"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
...@@ -56,6 +58,7 @@ ...@@ -56,6 +58,7 @@
android:layout_height="42dp" android:layout_height="42dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:paddingLeft="20dp"
android:text="Titre" android:text="Titre"
android:textColor="#000000" android:textColor="#000000"
android:textSize="34sp" android:textSize="34sp"
...@@ -66,8 +69,8 @@ ...@@ -66,8 +69,8 @@
android:id="@+id/prixTextView" android:id="@+id/prixTextView"
android:layout_width="107dp" android:layout_width="107dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_marginTop="108dp" android:layout_marginTop="112dp"
android:layout_marginEnd="32dp" android:layout_marginEnd="24dp"
android:text="10,33€" android:text="10,33€"
android:textAlignment="center" android:textAlignment="center"
android:textAllCaps="false" android:textAllCaps="false"
...@@ -83,6 +86,8 @@ ...@@ -83,6 +86,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:paddingStart="20dp"
android:paddingLeft="20dp"
android:text="TextView" android:text="TextView"
android:textAlignment="center" android:textAlignment="center"
android:textColor="#673AB7" android:textColor="#673AB7"
...@@ -93,16 +98,22 @@ ...@@ -93,16 +98,22 @@
<TextView <TextView
android:id="@+id/descriptionTextView4" android:id="@+id/descriptionTextView4"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="130dp" android:layout_height="wrap_content"
android:layout_marginStart="54dp" android:layout_marginStart="10dp"
android:layout_marginTop="28dp" android:layout_marginTop="8dp"
android:layout_marginEnd="54dp" android:layout_marginEnd="25dp"
android:layout_marginBottom="16dp"
android:paddingStart="20dp"
android:paddingTop="10dp"
android:paddingEnd="25dp"
android:paddingRight="20dp"
android:text="TextView" android:text="TextView"
android:textAlignment="center"
android:textAllCaps="false" android:textAllCaps="false"
android:textColor="#000000" android:textColor="#9F000000"
android:textSize="16sp"
android:textStyle="italic" android:textStyle="italic"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
...@@ -110,25 +121,23 @@ ...@@ -110,25 +121,23 @@
<Button <Button
android:id="@+id/smsButton" android:id="@+id/smsButton"
android:layout_width="131dp" android:layout_width="135dp"
android:layout_height="47dp" android:layout_height="64dp"
android:layout_marginStart="144dp" android:layout_marginTop="20dp"
android:layout_marginTop="26dp" android:layout_marginEnd="16dp"
android:layout_marginEnd="10dp" android:layout_marginBottom="203dp"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingTop="5dp" android:paddingTop="5dp"
android:paddingEnd="5dp" android:paddingEnd="5dp"
android:paddingRight="5dp" android:paddingRight="5dp"
android:paddingBottom="5dp" android:paddingBottom="5dp"
android:text="Contacter" android:text="Contacter"
android:textSize="11sp" android:textSize="11sp"
app:icon="@drawable/baseline_message_24" app:icon="@drawable/baseline_message_24"
app:layout_constraintBottom_toTopOf="@+id/titreTextView" app:layout_constraintBottom_toTopOf="@+id/descriptionTextView4"
app:layout_constraintEnd_toEndOf="@+id/prixTextView" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintTop_toBottomOf="@+id/prixTextView" />
app:layout_constraintStart_toEndOf="@+id/imageView"
app:layout_constraintTop_toBottomOf="@+id/prixTextView"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment