Modification de l'interface de l'onglet Ajouter

This commit is contained in:
NonoL3Robot
2022-02-21 16:24:56 +01:00
parent b61a4c8926
commit 3237821dd8
2 changed files with 47 additions and 38 deletions
+37 -37
View File
@@ -2,77 +2,77 @@
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:stretchColumns="0"> android:stretchColumns="1">
<!-- Titre -->
<TableRow> <!-- Titre --> <TextView
<TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center"
android:text="@string/ajouter_titre" android:text="@string/ajouter_titre"/>
android:layout_span="3"/>
</TableRow>
<TableRow> <!-- Plat --> <TableRow> <!-- Plat -->
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/label_plat"/> android:text="@string/label_plat" />
<EditText <EditText
android:id="@+id/input_plat" android:id="@+id/input_plat"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:inputType="text"
android:maxLines="1"
android:maxLength="20"
android:layout_column="1"/>
</TableRow> </TableRow>
<TableRow> <!-- Durée de cuisson --> <!-- Durée de cuisson -->
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/label_duree"/> android:text="@string/label_duree" />
<TimePicker <TimePicker
android:id="@+id/input_duree" android:id="@+id/input_duree"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:timePickerMode="spinner"/> android:timePickerMode="spinner" />
</TableRow>
<TableRow> <!-- Température --> <TableRow> <!-- Température -->
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/label_temperature"/> android:text="@string/label_temperature" />
<EditText <EditText
android:id="@+id/input_temperature" android:id="@+id/input_temperature"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_column="2" android:layout_column="1"
android:inputType="number"/> android:inputType="number" />
</TableRow> </TableRow>
<TableRow> <!-- Buttons --> <TableRow> <!-- Buttons -->
<Button <Button
android:layout_column="1" android:layout_width="wrap_content"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:text="@string/btn_effacer"
android:text="@string/btn_effacer" android:layout_column="2"
android:onClick="actionBtnEffacer"/> android:onClick="actionBtnEffacer"
style="?android:attr/buttonBarButtonStyle" />
<Button <Button
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/btn_valider" android:text="@string/btn_valider"
android:onClick="actionBtnAjouter"/> android:onClick="actionBtnAjouter" />
</TableRow> </TableRow>
</TableLayout> </TableLayout>
+10 -1
View File
@@ -5,4 +5,13 @@
température soient bien alignées) température soient bien alignées)
Un padding est ajouté autour du texte Un padding est ajouté autour du texte
fichier ligne_liste.xml 12/21 --> fichier ligne_liste.xml 12/21 -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:typeface="monospace" android:textStyle="bold" android:textSize="@dimen/taille_texte_liste" android:paddingTop="@dimen/padding_liste" android:paddingBottom="@dimen/padding_liste" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/couleur_item_liste"/> <TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:typeface="monospace"
android:textStyle="bold"/>
<!--android:textSize="@dimen/taille_texte_liste"
android:paddingTop="@dimen/padding_liste"
android:paddingBottom="@dimen/padding_liste"
android:textColor="@color/couleur_item_liste"-->