ODP-AppVehOwn/app/src/main/res/layout/activity_register_vehicle.xml

249 lines
9.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp">
<ImageView
android:id="@+id/imgVehicle"
android:layout_width="@dimen/systemImageWidth1"
android:layout_height="@dimen/systemImageHeight1"
android:layout_marginTop="5dp"
android:layout_marginStart="5dp"
android:layout_marginBottom="15dp"
android:src="@drawable/ic_default_vehicle"
android:contentDescription="@string/image"/>
<TextView
android:id="@+id/tvBrand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/imgVehicle"
android:textSize="@dimen/fontS"
android:text="@string/vehicle_brand"
/>
<Spinner
android:id="@+id/spBrand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tvBrand"
android:spinnerMode="dialog"
/>
<TextView
android:id="@+id/tvModel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/spBrand"
android:layout_marginTop="10dp"
android:textSize="@dimen/fontS"
android:text="@string/vehicle_model"
/>
<Spinner
android:id="@+id/spModel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvModel"
android:spinnerMode="dialog"
android:clickable="false"
/>
<TextView
android:id="@+id/tvPowertrain"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/spModel"
android:layout_marginTop="10dp"
android:textSize="@dimen/fontS"
android:text="@string/powertrain"
android:labelFor="@id/editPowertrain"
/>
<EditText
android:id="@+id/editPowertrain"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvPowertrain"
android:layout_marginTop="5dp"
android:inputType="text"
android:autofillHints="@string/powertrain"
android:ems="15"/>
<TextView
android:id="@+id/tvVariant"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editPowertrain"
android:layout_marginTop="5dp"
android:textSize="@dimen/fontS"
android:text="@string/variant"
android:labelFor="@id/editVariant"
/>
<EditText
android:id="@+id/editVariant"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvVariant"
android:inputType="text"
android:autofillHints="@string/variant"
android:ems="15"/>
<TextView
android:id="@+id/tvVIN"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editVariant"
android:layout_marginTop="5dp"
android:textSize="@dimen/fontS"
android:text="@string/vin"
android:labelFor="@id/editVIN"
/>
<EditText
android:id="@+id/editVIN"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvVIN"
android:inputType="text"
android:autofillHints="@string/vin"
android:ems="15"/>
<TextView
android:id="@+id/tvLicensePlate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editVIN"
android:layout_marginTop="5dp"
android:textSize="@dimen/fontS"
android:text="@string/license_plate"
android:labelFor="@id/editLicensePlate"
/>
<EditText
android:id="@+id/editLicensePlate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvLicensePlate"
android:inputType="text"
android:autofillHints="@string/license_plate"
android:ems="15"/>
<TextView
android:id="@+id/tvPropulsion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editLicensePlate"
android:layout_marginTop="5dp"
android:textSize="@dimen/fontS"
android:text="@string/propulsion_type"
/>
<Spinner
android:id="@+id/spPropulsion"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvPropulsion"
android:spinnerMode="dialog"
/>
<TextView
android:id="@+id/tvRegistrationDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/spPropulsion"
android:layout_marginTop="5dp"
android:textSize="@dimen/fontS"
android:text="@string/registration_date"
android:labelFor="@id/editRegistrationDate"
/>
<EditText
android:id="@+id/editRegistrationDate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvRegistrationDate"
android:inputType="date"
android:autofillHints="@string/registration_date"
android:focusable="false"
/>
<!--androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_marginTop="20dp"
android:layout_below="@id/tvDatePickerRegistration"/-->
<LinearLayout
android:id="@+id/llLocalButtons"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
android:layout_below="@+id/editRegistrationDate"
android:layout_width="match_parent">
<Button
android:id="@+id/btnStore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/store_register_vehicle"
style="?android:attr/buttonBarButtonStyle"
android:enabled="true"/>
<Button
android:id="@+id/btnUnDo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/undo_register_vehicle"
style="?android:attr/buttonBarButtonStyle"
android:enabled="true"/>
<Button
android:id="@+id/btnReload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/reload_from_storage_register_vehicle"
style="?android:attr/buttonBarButtonStyle"
android:enabled="true"/>
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_below="@+id/llLocalButtons">
<Button
android:id="@+id/btnRegisterVehicle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/register_vehicle"
style="?android:attr/buttonBarButtonStyle"
android:enabled="false"/>
<Button
android:id="@+id/btnUnregisterVehicle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/unregister_vehicle"
style="?android:attr/buttonBarButtonStyle"
android:enabled="false"/>
</LinearLayout>
</RelativeLayout>
</ScrollView>