308 lines
16 KiB
XML
308 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<data>
|
|
|
|
<import type="android.view.View" />
|
|
|
|
<import type="it.integry.integrywmsnative.BuildConfig" />
|
|
|
|
<variable
|
|
name="spedizioneView"
|
|
type="it.integry.integrywmsnative.gest.spedizione.SpedizioneActivity" />
|
|
|
|
</data>
|
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/full_white"
|
|
android:fitsSystemWindows="false"
|
|
tools:context=".gest.spedizione.SpedizioneActivity">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<!-- Main Content -->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/full_white"
|
|
android:minHeight="?attr/actionBarSize">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
style="@style/AppTheme.NewMaterial.Text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:layout_collapseMode="pin">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/add_extra_items_toolbar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="end"
|
|
android:adjustViewBounds="true"
|
|
android:background="@drawable/ripple_effect"
|
|
android:src="@drawable/ic_add_24dp"
|
|
android:tint="@color/colorPrimaryGray"
|
|
app:visibility="@{spedizioneView.addExtraItemsEnabled}"
|
|
app:singleClick="@{() -> spedizioneView.addExtraItem()}"/>
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="end"
|
|
android:adjustViewBounds="true"
|
|
android:background="@drawable/ripple_effect"
|
|
app:singleClick="@{() -> spedizioneView.startManualSearch()}"
|
|
android:src="@drawable/ic_black_barcode"
|
|
android:tint="@color/colorPrimaryGray"
|
|
android:visibility="@{BuildConfig.DEBUG ? View.VISIBLE : View.GONE}" />
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<net.cachapa.expandablelayout.ExpandableLayout
|
|
android:id="@+id/filtered_arts_in_list_expandable_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:el_duration="400"
|
|
app:el_expanded="false">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="8dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingRight="8dp"
|
|
android:paddingBottom="12dp">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_toStartOf="@+id/remove_art_filter_list"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
style="@style/AppTheme.NewMaterial.Text.Small"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/filtered_arts_in_list" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/description_filter_text"
|
|
style="@style/AppTheme.NewMaterial.Text.Medium"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
tools:text="COD_ART_HERE" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/remove_art_filter_list"
|
|
style="@style/Button.DangerOutline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:onClick="@{() -> spedizioneView.removeListFilter()}"
|
|
android:text="@string/remove_filter_button"
|
|
app:strokeColor="@color/red_600" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</net.cachapa.expandablelayout.ExpandableLayout>
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/spedizione_picking_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="72dp"
|
|
android:scrollbars="vertical" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/spedizione_empty_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.3"
|
|
app:visibility="@{spedizioneView.noItemsToPick}">
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/guideline_empty_top"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="0.2" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/guideline_empty_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.15" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/guideline_empty_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.85" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toStartOf="@id/guideline_empty_right"
|
|
app:layout_constraintStart_toEndOf="@id/guideline_empty_left"
|
|
app:layout_constraintTop_toTopOf="@id/guideline_empty_top">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:layout_width="72dp"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:src="@drawable/ic_playlist_add_check_24dp" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/no_item_to_pick_text"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="18sp" />
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<com.github.clans.fab.FloatingActionMenu
|
|
android:id="@+id/spedizione_fab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentBottom="true"
|
|
app:layout_anchor="@+id/spedizione_empty_view"
|
|
app:layout_anchorGravity="center"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:menu_animationDelayPerItem="50"
|
|
app:menu_backgroundColor="@color/white_bg_alpha"
|
|
app:menu_buttonSpacing="0dp"
|
|
app:menu_colorNormal="@color/colorSecondary"
|
|
app:menu_colorPressed="@color/colorSecondaryDark"
|
|
app:menu_fab_size="normal"
|
|
app:menu_labels_colorNormal="@color/white"
|
|
app:menu_labels_colorPressed="@color/white_pressed"
|
|
app:menu_labels_colorRipple="#66FFFFFF"
|
|
app:menu_labels_cornerRadius="3dp"
|
|
app:menu_labels_hideAnimation="@anim/fab_slide_out_to_right"
|
|
app:menu_labels_margin="0dp"
|
|
app:menu_labels_padding="8dp"
|
|
app:menu_labels_paddingBottom="4dp"
|
|
app:menu_labels_paddingLeft="8dp"
|
|
app:menu_labels_paddingRight="8dp"
|
|
app:menu_labels_paddingTop="4dp"
|
|
app:menu_labels_position="left"
|
|
app:menu_labels_showAnimation="@anim/fab_slide_in_from_right"
|
|
app:menu_labels_showShadow="true"
|
|
app:menu_labels_textColor="@color/black_semi_transparent"
|
|
app:menu_labels_textSize="18sp"
|
|
app:menu_openDirection="up"
|
|
app:menu_shadowColor="#66000000"
|
|
app:menu_shadowRadius="4dp"
|
|
app:menu_shadowXOffset="1dp"
|
|
app:menu_shadowYOffset="3dp"
|
|
app:menu_showShadow="true"
|
|
app:visibility="@{spedizioneView.noLUPresent}">
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_baseline_assignment_turned_in_24"
|
|
app:visibility="@{spedizioneView.closeOrderButtonEnabled}"
|
|
app:fab_colorNormal="@color/white"
|
|
app:fab_colorPressed="@color/white_pressed"
|
|
app:fab_colorRipple="#66FFFFFF"
|
|
app:fab_label="@string/action_close_order"
|
|
app:onClick="@{() -> spedizioneView.closeOrder()}" />
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_box"
|
|
app:fab_colorNormal="@color/white"
|
|
app:fab_colorPressed="@color/white_pressed"
|
|
app:fab_colorRipple="#66FFFFFF"
|
|
app:fab_label="@string/action_show_created_ul"
|
|
app:onClick="@{() -> spedizioneView.showCreatedUL()}" />
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_add_24dp"
|
|
app:fab_colorNormal="@color/white"
|
|
app:fab_colorPressed="@color/white_pressed"
|
|
app:fab_colorRipple="#66FFFFFF"
|
|
app:fab_label="@string/action_create_ul"
|
|
app:onClick="@{() -> spedizioneView.createNewUL()}" />
|
|
|
|
</com.github.clans.fab.FloatingActionMenu>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<it.integry.integrywmsnative.view.bottom_sheet__lu_content.BottomSheetFragmentLUContentView
|
|
android:id="@+id/bottom_sheet_lu_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:visibility="@{spedizioneView.bottomSheetEnabled}"
|
|
app:behavior_hideable="false"
|
|
app:behavior_peekHeight="66dp"
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
</layout> |