mirror of
https://github.com/hmalik144/Driver.git
synced 2025-12-10 02:45:20 +00:00
148 lines
5.6 KiB
XML
148 lines
5.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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.vehicleprofile.VehicleProfileFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="12dp"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/reg"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/car_reg"
|
|
android:inputType="textCapCharacters"
|
|
style="@style/EditTextStyle"
|
|
android:autofillHints="none" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/make"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/car_make"
|
|
android:inputType="none"
|
|
android:maxLines="1"
|
|
style="@style/EditTextStyle"
|
|
android:importantForAutofill="no" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/car_model"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/car_model"
|
|
android:inputType="none"
|
|
android:maxLines="1"
|
|
style="@style/EditTextStyle"
|
|
android:importantForAutofill="no" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/colour"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/car_colour"
|
|
android:inputType="none"
|
|
android:maxLines="1"
|
|
style="@style/EditTextStyle"
|
|
android:autofillHints="color" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/keeper_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:ems="10"
|
|
android:hint="@string/name_of_keeper"
|
|
android:inputType="textPersonName"
|
|
android:maxLines="1"
|
|
style="@style/EditTextStyle"
|
|
android:autofillHints="name" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/address"
|
|
android:layout_marginBottom="12dp"
|
|
android:gravity="top|start"
|
|
android:hint="@string/address_of_keeper"
|
|
android:inputType="textMultiLine"
|
|
android:lines="4"
|
|
android:maxLines="7"
|
|
android:minLines="4"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
style="@style/EditTextStyle"
|
|
android:autofillHints="postalAddress" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/postcode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/postcode_of_keeper"
|
|
android:inputType="none|textCapCharacters"
|
|
android:maxLines="1"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
style="@style/EditTextStyle"
|
|
android:autofillHints="postalCode" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout style="@style/text_input_layout">
|
|
|
|
<EditText
|
|
android:id="@+id/start_date"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/car_start_date"
|
|
style="@style/EditTextStyle.Date"
|
|
android:autofillHints="date" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/seized_checkbox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:hint="@string/vehicle_seized"
|
|
android:buttonTint="@color/colour_eight"
|
|
android:padding="12dp"
|
|
android:textSize="18sp" />
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/submit_vehicle"
|
|
style="@style/TextButton.WithIcon"
|
|
android:text="@string/submit"
|
|
android:layout_marginBottom="48dp"
|
|
android:layout_gravity="end" />
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |