126 lines
4.1 KiB
XML
126 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="4dp"
|
|
android:elevation="10dp"
|
|
android:clickable="true"
|
|
android:layout_marginVertical="4dp">
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<Spinner
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_weight="4"
|
|
android:id="@+id/check_point_spinner">
|
|
|
|
</Spinner>
|
|
|
|
<CheckBox
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:text="OK"
|
|
android:layout_weight="1"
|
|
android:id="@+id/check_point_ok"
|
|
>
|
|
</CheckBox>
|
|
|
|
<CheckBox
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:text="NO"
|
|
android:layout_weight="1"
|
|
android:id="@+id/check_point_no"
|
|
>
|
|
</CheckBox>
|
|
|
|
<!-- <ImageButton-->
|
|
<!-- android:id="@+id/check_point_delete"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:src="@drawable/ic_delete"-->
|
|
<!-- android:background="@null"-->
|
|
<!-- android:padding="8dp"/>-->
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="3dp">
|
|
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:hint="Remarks"
|
|
android:layout_weight="4"
|
|
android:id="@+id/check_point_remarks">
|
|
</EditText>
|
|
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="3dp"
|
|
android:id="@+id/defect_layout">
|
|
|
|
<Spinner
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_weight="1"
|
|
android:padding="5dp"
|
|
android:id="@+id/defect_spinner">
|
|
</Spinner>
|
|
|
|
<Spinner
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_weight="1"
|
|
android:padding="5dp"
|
|
android:id="@+id/defect_type_spinner">
|
|
</Spinner>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/preview_image"
|
|
android:layout_width="150dp"
|
|
android:layout_height="150dp">
|
|
</ImageView>
|
|
<TextView
|
|
android:id="@+id/selected_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:textAlignment="center"
|
|
android:text="image">
|
|
</TextView>
|
|
|
|
<ImageButton
|
|
android:id="@+id/image_picker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/image_picker"
|
|
android:background="@null"
|
|
android:padding="8dp"/>
|
|
<ImageButton
|
|
android:id="@+id/delete_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_delete"
|
|
android:background="@null"
|
|
android:padding="8dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView> |