<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout 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"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/bgcolor"
|
android:focusable="true"
|
android:focusableInTouchMode="true"
|
android:orientation="vertical"
|
tools:context=".TakeActivity">
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="5">
|
|
<ImageButton
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_gravity="center"
|
android:alpha="1"
|
android:background="@drawable/back_go_button"
|
android:onClick="backMian"
|
android:scaleType="centerCrop"
|
android:src="@mipmap/fanhui" />
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<EditText
|
android:id="@+id/edt_borrow_case_number"
|
android:layout_width="0dp"
|
app:layout_constraintWidth_percent="0.5"
|
android:layout_height="0dp"
|
android:background="@null"
|
android:layout_marginTop="10dp"
|
android:gravity="center"
|
android:hint="请输入员工号"
|
android:inputType="number"
|
android:textAlignment="center"
|
android:textColor="@color/white"
|
android:textColorHint="@color/white"
|
android:textSize="30dp"
|
app:layout_constraintHeight_percent="0.2"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<TableLayout
|
android:layout_width="0dp"
|
app:layout_constraintDimensionRatio="2:1"
|
android:layout_height="0dp"
|
android:layout_alignParentBottom="true"
|
android:layout_centerHorizontal="true"
|
android:stretchColumns="*"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintHeight_percent="0.6"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent">
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="2">
|
|
<Button
|
android:id="@+id/borrow_bt1"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_left"
|
android:text="1"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt2"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_mid"
|
android:text="2"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt3"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_right"
|
android:text="3"
|
android:textSize="30sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="2">
|
|
<Button
|
android:id="@+id/borrow_bt4"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_left"
|
android:text="4"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt5"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_mid"
|
android:text="5"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt6"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_right"
|
android:text="6"
|
android:textSize="30sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="2">
|
|
<Button
|
android:id="@+id/borrow_bt7"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_left"
|
android:text="7"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt8"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_mid"
|
android:text="8"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt9"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_right"
|
android:text="9"
|
android:textSize="30sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="2">
|
|
<Button
|
android:id="@+id/borrow_bt_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_left"
|
android:text="DEL"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt0"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_mid"
|
android:text="0"
|
android:textSize="30sp" />
|
|
<Button
|
android:id="@+id/borrow_bt_confirm"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@drawable/number_button_right"
|
android:gravity="center"
|
android:text="OK"
|
android:textSize="30sp" />
|
</TableRow>
|
</TableLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|