layout_commande.xml 2.1 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:baselineAligned="false"
    android:weightSum="1"
    android:nestedScrollingEnabled="true">


    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:inputType="number"
        android:ems="10"
        android:id="@+id/commande_quantite"
        android:editable="true"
        android:elegantTextHeight="true"
        android:enabled="true"
        android:numeric="integer"
        android:width="300dp"
        android:hint="@string/quant"
        android:textAlignment="center"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="20dp"
        android:height="150dp"
        android:minHeight="50dp"
        android:maxHeight="500dp"
        android:minWidth="120dp" />

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:inputType="number"
        android:ems="10"
        android:id="@+id/commande_prix"
        android:editable="true"
        android:elegantTextHeight="true"
        android:enabled="true"
        android:numeric="decimal"
        android:width="300dp"
        android:hint="@string/prix"
        android:textAlignment="center"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="20dp"
        android:height="80dp"
        android:minHeight="50dp"
        android:maxHeight="500dp"
        android:minWidth="120dp" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/validate"
        android:id="@+id/commande_validation"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="40dp"
        android:width="180dp"
        android:height="80dp"
        android:onClick="valideCommande"
        android:nestedScrollingEnabled="false"
        android:enabled="true" />

</LinearLayout>