245 lines
10 KiB
XML
245 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:fab="http://schemas.android.com/apk/res-auto">
|
|
<data>
|
|
|
|
<import type="android.view.View"/>
|
|
|
|
<import type="it.integry.integrywmsnative.core.utility.UtilityString" />
|
|
|
|
<variable
|
|
name="viewmodel"
|
|
type="it.integry.integrywmsnative.gest.picking_libero.viewmodel.PickingLiberoViewModel" />
|
|
|
|
</data>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/picking_libero_main_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="92dp"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp">
|
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/free_picking__suggestion_1__guideline_top"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="0.35"/>
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/free_picking__suggestion_1__guideline_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.2" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/free_picking__suggestion_1__guideline_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.8" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:alpha="0.4"
|
|
app:visibility="@{viewmodel.thereIsntAnOpenedUL}"
|
|
app:layout_constraintTop_toBottomOf="@id/free_picking__suggestion_1__guideline_top"
|
|
app:layout_constraintLeft_toRightOf="@id/free_picking__suggestion_1__guideline_left"
|
|
app:layout_constraintRight_toLeftOf="@id/free_picking__suggestion_1__guideline_right">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="18sp"
|
|
android:gravity="center_horizontal"
|
|
android:layout_gravity="center_horizontal"
|
|
android:text="@string/free_picking_suggestion_1"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:alpha="0.4"
|
|
app:visibility="@{viewmodel.thereIsAnOpenULWithoutRows}"
|
|
app:layout_constraintTop_toBottomOf="@id/free_picking__suggestion_1__guideline_top"
|
|
app:layout_constraintLeft_toRightOf="@id/free_picking__suggestion_1__guideline_left"
|
|
app:layout_constraintRight_toLeftOf="@id/free_picking__suggestion_1__guideline_right">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="18sp"
|
|
android:gravity="center_horizontal"
|
|
android:layout_gravity="center_horizontal"
|
|
android:text="@string/free_picking_suggestion_2"/>
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|right"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:src="@drawable/fab_add"
|
|
android:onClick="@{() -> viewmodel.createNewLU()}"
|
|
android:visibility="@{viewmodel.mtbColt == null ? View.VISIBLE : View.GONE}"
|
|
fab:fab_colorNormal="@color/colorPrimary"
|
|
fab:fab_colorPressed="@color/white_pressed"
|
|
fab:fab_colorRipple="#66FFFFFF"/>
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|right"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:src="@drawable/ic_check_white_24dp"
|
|
android:onClick="@{() -> viewmodel.closeLU()}"
|
|
android:visibility="@{viewmodel.mtbColt != null ? View.VISIBLE : View.GONE}"
|
|
fab:fab_colorNormal="@color/mainGreen"
|
|
fab:fab_colorPressed="@color/white_pressed"
|
|
fab:fab_colorRipple="#66FFFFFF"/>
|
|
|
|
|
|
|
|
<View
|
|
android:visibility="gone"
|
|
android:id="@+id/bg"
|
|
android:background="#99000000"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottom_sheet_actions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="#fff"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:layout_gravity="bottom"
|
|
app:behavior_hideable="true"
|
|
app:behavior_peekHeight="0dp"
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="center_vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginBottom="8dp"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_sheet_actions_quantity"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/bottom_sheet_actions_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:text="Descrizione articolo"
|
|
android:textColor="#444"
|
|
android:textSize="18dp"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:paddingRight="8dp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/bottom_sheet_actions_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:text="ABF52IL"
|
|
android:textSize="14dp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_actions_quantity"
|
|
android:layout_width="wrap_content"
|
|
android:gravity="right"
|
|
android:layout_height="wrap_content"
|
|
android:textStyle="bold"
|
|
android:textSize="15dp"
|
|
tools:text="250 PZ"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
android:gravity="center">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/bottom_sheet_actions_delete_btn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:background="@android:color/white"
|
|
android:scaleX="1.5"
|
|
android:scaleY="1.5"
|
|
android:src="@drawable/ic_delete_24dp"
|
|
android:tint="@color/red_600" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Cancella"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
</layout> |