Implementato bottom sheet per le action di modifica/delete riga in collo.
Implementata data scad in DialogInputQuantity.
This commit is contained in:
@@ -156,22 +156,75 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
<android.support.constraint.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="@{quantityViewModel.canPartitaMagBeChanged}"
|
||||
app:hintTextAppearance="@style/hint_text">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/input_partita_mag"
|
||||
android:layout_width="match_parent"
|
||||
<android.support.constraint.Guideline
|
||||
android:id="@+id/guideline_partita_data"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:hint="@string/batch_lot"
|
||||
app:binding="@{quantityViewModel.batchLot}"/>
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.50"/>
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="@{quantityViewModel.canPartitaMagBeChanged}"
|
||||
app:hintTextAppearance="@style/hint_text"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/guideline_partita_data"
|
||||
android:nextFocusRight="@+id/input_data_scad">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/input_partita_mag"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:hint="@string/batch_lot"
|
||||
app:binding="@{quantityViewModel.batchLot}"/>
|
||||
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
<android.support.v7.widget.AppCompatTextView
|
||||
android:id="@+id/input_data_scad"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="11 nov 2018"
|
||||
android:textSize="16sp"
|
||||
android:enabled="@{quantityViewModel.shouldAskDataScad.get()}"
|
||||
app:binding="@{quantityViewModel.expireDateString}"
|
||||
app:layout_constraintStart_toEndOf="@id/guideline_partita_data"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
|
||||
<!--<android.support.design.widget.TextInputLayout-->
|
||||
<!--android:id="@+id/input_data_scad_layout"-->
|
||||
<!--android:layout_width="0dp"-->
|
||||
<!--android:layout_height="wrap_content"-->
|
||||
<!--android:enabled="@{quantityViewModel.shouldAskDataScad.get()}"-->
|
||||
<!--app:hintTextAppearance="@style/hint_text"-->
|
||||
<!--app:layout_constraintStart_toEndOf="@id/guideline_partita_data"-->
|
||||
<!--app:layout_constraintEnd_toEndOf="parent">-->
|
||||
|
||||
<!--<android.support.design.widget.TextInputEditText-->
|
||||
<!--android:id="@+id/input_data_scad"-->
|
||||
<!--android:layout_width="match_parent"-->
|
||||
<!--android:layout_height="wrap_content"-->
|
||||
<!--android:inputType="textNoSuggestions"-->
|
||||
<!--android:hint="@string/expire_date"-->
|
||||
<!--app:binding="@{quantityViewModel.expireDate}"/>-->
|
||||
|
||||
|
||||
<!--</android.support.design.widget.TextInputLayout>-->
|
||||
|
||||
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
<string name="to_dispatch">Da evadere</string>
|
||||
|
||||
<string name="batch_lot">Lotto</string>
|
||||
<string name="expire_date">Data scad</string>
|
||||
<string name="num_pcks">Num cnf</string>
|
||||
<string name="qty_x_pck"><![CDATA[Qtà x cnf]]></string>
|
||||
<string name="tot_qty"><![CDATA[Qtà tot]]></string>
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
<string name="to_dispatch">To dispatch</string>
|
||||
|
||||
<string name="batch_lot">Batch lot</string>
|
||||
<string name="expire_date">Expire date</string>
|
||||
<string name="num_pcks">Pcks num</string>
|
||||
<string name="qty_x_pck">Qty x pck</string>
|
||||
<string name="tot_qty">Tot qty</string>
|
||||
|
||||
Reference in New Issue
Block a user