Commit 3f6a5a92 authored by Lucas NAURY's avatar Lucas NAURY

Update page style

parent 5018b759
<?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" <ScrollView 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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:isScrollContainer="true"
android:nestedScrollingEnabled="true"
tools:context=".ui.ajout_annonce.AjoutAnnonceFragment"> tools:context=".ui.ajout_annonce.AjoutAnnonceFragment">
<LinearLayout <LinearLayout
...@@ -12,22 +14,6 @@ ...@@ -12,22 +14,6 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin"> android:padding="@dimen/activity_horizontal_margin">
<TextView
android:id="@+id/titre"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-black"
android:text="Création d'une annonce"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textColor="@color/purple_500"
android:textSize="24sp" />
<Space
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/activity_vertical_margin" />
<TextView <TextView
android:id="@+id/titreImage" android:id="@+id/titreImage"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -84,7 +70,7 @@ ...@@ -84,7 +70,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:alpha="100" android:alpha="100"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:text="Titre de l'annonce :" android:text="Titre de l'annonce* :"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<EditText <EditText
...@@ -106,7 +92,7 @@ ...@@ -106,7 +92,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:text="Prix :" android:text="Prix* :"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<EditText <EditText
...@@ -128,7 +114,7 @@ ...@@ -128,7 +114,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:text="Adresse : " android:text="Adresse* :"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<EditText <EditText
...@@ -167,6 +153,14 @@ ...@@ -167,6 +153,14 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="@dimen/activity_vertical_margin" /> android:minHeight="@dimen/activity_vertical_margin" />
<TextView
android:id="@+id/warningObligatoire"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Les champs marqués d'un * sont obligatoires"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="#52000000" />
<Button <Button
android:id="@+id/boutonAjoutAnnonce" android:id="@+id/boutonAjoutAnnonce"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -174,4 +168,4 @@ ...@@ -174,4 +168,4 @@
android:text="ajouter" /> android:text="ajouter" />
</LinearLayout> </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </ScrollView>
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<fragment <fragment
android:id="@+id/navigation_ajout_annonce" android:id="@+id/navigation_ajout_annonce"
android:name="com.example.tpleboncoin.ui.ajout_annonce.AjoutAnnonceFragment" android:name="com.example.tpleboncoin.ui.ajout_annonce.AjoutAnnonceFragment"
android:label="@string/title_add" android:label="@string/title_add_top"
tools:layout="@layout/fragment_ajout_annonce" /> tools:layout="@layout/fragment_ajout_annonce" />
<fragment <fragment
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<string name="app_name">TP LeBonCoin</string> <string name="app_name">TP LeBonCoin</string>
<string name="title_home">Accueil</string> <string name="title_home">Accueil</string>
<string name="title_add">Ajout</string> <string name="title_add">Ajout</string>
<string name="title_add_top">Création d\'une annonce</string>
<string name="title_profile">Profil</string> <string name="title_profile">Profil</string>
<string name="text_annonce">test</string> <string name="text_annonce">test</string>
<string name="linear_layout_manager">Liste</string> <string name="linear_layout_manager">Liste</string>
......
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