Commit 0ea13bb9 authored by Inès EL HADRI's avatar Inès EL HADRI 💤

change annonces layouts

parent f1704608
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
<ImageView <ImageView
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="80dp" android:layout_width="100dp"
android:layout_height="80dp" android:layout_height="100dp"
android:src="@drawable/ic_launcher_background" /> android:src="@drawable/ic_launcher_background" />
<TextView <TextView
......
<FrameLayout 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:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical" android:minHeight="50dp"
android:minHeight="50dp"> android:padding="8dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp">
<ImageView <ImageView
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="80dp" android:layout_width="80dp"
android:layout_height="80dp" android:layout_height="80dp"
android:src="@drawable/ic_launcher_background" /> android:src="@drawable/ic_launcher_background"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/titre_annonce" android:id="@+id/titre_annonce"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginBottom="4dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:text="Titre annonce de test" android:text="Titre annonce de test"
android:layout_below="@+id/imageView" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> app:layout_constraintBottom_toTopOf="@+id/adresse_annonce"
app:layout_constraintStart_toEndOf="@+id/imageView" />
<TextView <TextView
android:id="@+id/adresse_annonce" android:id="@+id/adresse_annonce"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Adresse, 59000 Douai" android:text="Adresse, 59000 Douai"
android:layout_toEndOf="@id/titre_annonce" app:layout_constraintBottom_toBottomOf="parent"
android:layout_alignTop="@id/titre_annonce" app:layout_constraintStart_toStartOf="@+id/titre_annonce" />
android:textAlignment="viewEnd"
/>
<TextView <TextView
android:id="@+id/prix_annonce" android:id="@+id/prix_annonce"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:fontFamily="sans-serif-black" android:fontFamily="sans-serif-black"
android:text="12.99€" android:text="12.99€"
android:textAlignment="viewEnd" android:textAlignment="viewEnd"
android:layout_toRightOf="@id/imageView" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> app:layout_constraintEnd_toEndOf="parent"
</RelativeLayout> app:layout_constraintTop_toTopOf="parent" />
</FrameLayout> </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