<?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">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_see_code"
|
android:layout_gravity="end"
|
android:layout_marginTop="50dp"
|
android:layout_marginEnd="15dp"
|
android:text="Manual pickuo code"
|
android:textSize="13sp"
|
android:background="@drawable/bg_white_3"
|
android:padding="10dp"
|
/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<TextView
|
android:id="@+id/titleinfo"
|
android:layout_width="wrap_content"
|
android:layout_height="0dp"
|
android:layout_marginTop="19dp"
|
android:background="@null"
|
android:gravity="center"
|
android:text="Please enter pickup code and place meal"
|
android:textAlignment="center"
|
android:textColor="@color/white"
|
android:textColorHint="@color/white"
|
android:textSize="25sp"
|
android:textStyle="bold"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
<EditText
|
android:id="@+id/edt_borrow_case_number"
|
android:layout_width="0dp"
|
android:layout_height="65dp"
|
android:background="@drawable/bg_white_3"
|
android:layout_marginTop="29dp"
|
android:gravity="center"
|
android:inputType="number"
|
android:textAlignment="center"
|
android:textColor="@color/black"
|
android:textColorHint="@color/white"
|
android:textSize="24sp"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintStart_toStartOf="@id/keyboard"
|
app:layout_constraintEnd_toEndOf="@id/keyboard"
|
app:layout_constraintTop_toBottomOf="@id/titleinfo" />
|
|
<TableLayout
|
android:id="@+id/keyboard"
|
android:layout_width="390dp"
|
android:layout_height="219dp"
|
android:stretchColumns="*"
|
app:layout_constraintTop_toBottomOf="@id/edt_borrow_case_number"
|
android:layout_marginTop="15dp"
|
android:paddingVertical="6dp"
|
android:paddingHorizontal="4dp"
|
android:layout_marginHorizontal="29dp"
|
android:background="@drawable/bg_grey_6dp"
|
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="24sp" />
|
|
<Button
|
android:id="@+id/borrow_bt2"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginStart="8dp"
|
android:background="@drawable/number_button_mid"
|
android:text="2"
|
android:textSize="24sp" />
|
|
<Button
|
android:id="@+id/borrow_bt3"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginStart="8dp"
|
android:background="@drawable/number_button_right"
|
android:text="3"
|
android:textSize="24sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_marginTop="6dp"
|
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="24sp" />
|
|
<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:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
|
<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:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_marginTop="6dp"
|
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="24sp" />
|
|
<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:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
|
<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:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
</TableRow>
|
|
<TableRow
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_marginTop="6dp"
|
android:layout_weight="2">
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:background="@null"
|
android:textSize="24sp" />
|
|
<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:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
|
<ImageView
|
android:id="@+id/borrow_bt_delete"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:src="@mipmap/delete"
|
android:scaleType="center"
|
android:layout_marginStart="8dp"
|
android:textSize="24sp" />
|
</TableRow>
|
</TableLayout>
|
<TextView
|
android:id="@+id/borrow_bt_confirm"
|
android:layout_width="150dp"
|
android:layout_height="40dp"
|
app:layout_constraintTop_toBottomOf="@id/keyboard"
|
app:layout_constraintEnd_toEndOf="@id/keyboard"
|
android:textSize="18sp"
|
android:gravity="center"
|
android:layout_marginEnd="23dp"
|
android:layout_marginTop="30dp"
|
android:textColor="@color/white"
|
android:textStyle="bold"
|
android:text="Order setup"
|
android:background="@drawable/bg_oragne_6"/>
|
<TextView
|
android:id="@+id/tv_by_hand"
|
android:layout_width="150dp"
|
android:layout_height="40dp"
|
app:layout_constraintTop_toBottomOf="@id/keyboard"
|
app:layout_constraintStart_toStartOf="@id/keyboard"
|
android:textSize="18sp"
|
android:gravity="center"
|
android:layout_marginStart="23dp"
|
android:layout_marginTop="30dp"
|
android:textColor="@color/colorPrimary"
|
android:textStyle="bold"
|
android:text="Maual setup"
|
android:background="@drawable/bg_oragne_line_6"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</LinearLayout>
|