You are on page 1of 7

<?xml version="1.0" encoding="utf-8"?

>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

<TextView
android:id="@+id/Titre"
android:layout_width="match_parent"
android:layout_height="150px"
android:inputType="number"
android:text="Achats de vetements en cours d'un solde" />

<TableRow android:shrinkColumns="0">

<TextView
android:id="@+id/TextVquantite"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Quantite" />

<EditText
android:id="@+id/Etextquantite"
android:layout_width="206dp"
android:hint=""
android:inputType="numberDecimal" />

</TableRow>

<TableRow
android:layout_height="wrap_content"
android:stretchColumns="1">

<TextView
android:id="@+id/TextVPrix"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number"
android:text="Prix" />

<EditText
android:id="@+id/Prix"
android:layout_width="wrap_content"
android:hint=""
android:inputType="number" />

</TableRow>

<TableRow
android:layout_height="wrap_content"
android:stretchColumns="1">

<TextView
android:id="@+id/TextVPrixAvantSolde"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Prix avant le solde" />

<EditText
android:id="@+id/PrixAvantSolde"
android:layout_width="wrap_content"
android:hint="" />

</TableRow>

<TableRow
android:layout_height="wrap_content"
android:stretchColumns="1">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Type d'article" />

<Spinner
android:id="@+id/type_spinner"
android:layout_width="match_parent"
android:layout_height="47dp"

android:entries="@array/article_typesa" />

</TableRow>

<TableRow
android:layout_height="wrap_content"
android:stretchColumns="1">

<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Date" />

<EditText
android:id="@+id/editTextDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="date" />

</TableRow>

<TableRow
android:layout_height="wrap_content"
android:stretchColumns="1">

<TextView
android:id="@+id/LieuDeAchat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lieu d'achat" />

<EditText
android:id="@+id/EDLieuDeAchat"
android:layout_width="wrap_content"
android:hint=""
android:inputType="text" />

</TableRow>

<TableRow>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Valider" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="cancel" />
</TableRow>
</TableLayout>

<?xml version="1.0" encoding="utf-8"?>


<resources>
<string-array name="article_typesa">
<item>Pantalon</item>
<item>Tricot</item>
<item>T-shirt</item>
<item>Chemise</item>
</string-array>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<EditText
android:id="@+id/editText_nom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Nom du smartphone"
android:inputType="text" />

<EditText
android:id="@+id/editText_fabriquant"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Fabriquant"
android:inputType="text" />

<EditText
android:id="@+id/editText_annee"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Année de sortie"
android:inputType="number" />

<EditText
android:id="@+id/editText_processeur"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Processeur"
android:inputType="text" />

<EditText
android:id="@+id/editText_ram"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="RAM (en Go)"
android:inputType="numberDecimal" />

<EditText
android:id="@+id/editText_cam_frontale"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Résolution caméra frontale (en MP)"
android:inputType="numberDecimal" />

<EditText
android:id="@+id/editText_cam_arriere"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Résolution caméra arrière (en MP)"
android:inputType="numberDecimal" />

<RatingBar
android:id="@+id/ratingBar_notation"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:isIndicator="false"
android:numStars="5"
android:rating="0"
android:stepSize="0.5" />

You might also like