You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
5.1 KiB
XML

2 years ago
<?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>
<variable
name="vm"
type="com.example.beijing_daxing.vm.InStoreVM" />
<variable
name="adapter"
type="com.example.beijing_daxing.adapter.InAdapter" />
2 years ago
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/bg1"
tools:context=".InActivity">
<TextView
android:id="@+id/textView3"
style="@style/title_text"
android:layout_width="match_parent"
android:layout_height="45dp"
android:text="轮挡入库"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView2"
android:layout_width="match_parent"
android:layout_height="500dp"
android:layout_marginTop="12dp"
android:background="@color/white"
android:padding="10dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:adapter="@{adapter}"
2 years ago
app:layout_constraintTop_toBottomOf="@+id/textView3"
tools:layout_editor_absoluteX="0dp" />
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/recyclerView2"
tools:layout_editor_absoluteX="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="扫描轮挡数量:" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text='@={vm.sanLength+""}' />
2 years ago
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="52dp"
android:layout_marginBottom="200dp"
android:background="@color/bg1"
android:focusable="true"
android:focusableInTouchMode="true"
app:layout_constraintBottom_toBottomOf="parent"
tools:layout_editor_absoluteX="42dp">
<TextView
style="@style/info_text"
android:layout_width="110dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:text="输入批次:" />
<EditText
style="@style/info_text1"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_gravity="center"
android:imeOptions="actionDone"
android:maxLines="1"
android:singleLine="true"
android:text="@={vm.binchCode}"/>
2 years ago
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginTop="70dp"
app:layout_constraintTop_toBottomOf="@+id/linearLayout">
<TextView
style="@style/info_text"
android:layout_width="110dp"
android:layout_height="match_parent"
android:text="选择厂家:" />
<Spinner
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@{vm.manus}"
android:onItemSelected="@{vm.selectManus}"/>
2 years ago
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginTop="10dp"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
<TextView
style="@style/info_text"
android:layout_width="110dp"
android:layout_height="match_parent"
android:text="选择库位:" />
<Spinner
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@{vm.locations}"
android:onItemSelected="@{vm.selectLocation}"/>
2 years ago
</LinearLayout>
<Button
style="@style/button_style"
android:layout_width="match_parent"
android:layout_height="55dp"
2 years ago
android:layout_marginTop="12dp"
android:text="提交"
android:onClick="in_submit"
2 years ago
app:layout_constraintTop_toBottomOf="@+id/linearLayout4"
tools:layout_editor_absoluteX="16dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>