Quality-Control-Android-App/app/src/main/res/layout/fragment_cutting.xml

140 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragments.CuttingFragment">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:scrollbarFadeDuration="0"
android:fadeScrollbars="false"
android:layout_marginBottom="60dp"
android:background="@drawable/rounded_border"
android:scrollbarThumbVertical="@android:color/darker_gray"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:orientation="vertical"
android:padding="5dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cutting Process"
android:textSize="@dimen/_20sdp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_cutting"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone"
android:weightSum="1">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="Percentage: "
android:textSize="@dimen/_14sdp" />
<EditText
android:id="@+id/et_percentage"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.7"
android:padding="5dp"
android:background="@drawable/et_border"
android:enabled="false" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:text="Remarks: "
android:textSize="@dimen/_14sdp" />
<EditText
android:id="@+id/et_remarks"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:enabled="true"
android:padding="5dp"
android:layout_marginTop="5dp"
android:background="@drawable/et_border"
android:maxLines="3"
android:minLines="3" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:padding="5dp">
<TextView
android:id="@+id/txtHeading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_alignParentStart="true"
android:text="Pictures: "
android:textSize="@dimen/_14sdp" />
<ImageButton
android:id="@+id/image_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_toEndOf="@+id/txtHeading"
android:contentDescription="select"
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:layout_centerInParent="true"
android:layout_toEndOf="@+id/image_picker"
android:contentDescription="delete"
android:src="@drawable/ic_delete"
android:background="@null"
android:padding="8dp"/>
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/imageRecyclerView"
android:layout_width="match_parent"
android:layout_height="150dp"
android:visibility="gone"
android:orientation="horizontal"
android:layout_margin="5dp"/>
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/btn_next"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="5dp"
android:layout_gravity="bottom"
android:background="@drawable/rounded_btn_login"
android:text="Next"/>
</FrameLayout>