<?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">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<com.youth.banner.Banner
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/banner"
|
app:indicator_selected_color="@color/white"
|
app:indicator_normal_color="#565659"
|
app:indicator_height="15dp"
|
app:indicator_marginBottom="30dp"
|
app:indicator_normal_width="15dp"
|
app:indicator_selected_width="15dp"
|
app:indicator_space="20dp"
|
app:delay_time="5000"
|
app:indicator_radius="10dp"
|
app:is_auto_loop="true"/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginEnd="24dp"
|
android:background="@mipmap/bg_keybord">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:text="Enter pickup code"
|
android:textSize="27sp"
|
android:layout_marginTop="17dp"
|
android:id="@+id/tv_1"
|
android:textColor="@color/black"/>
|
<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="24dp"
|
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"
|
android:layout_marginHorizontal="29dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_1" />
|
<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="wrap_content"
|
android:layout_height="44dp"
|
app:layout_constraintTop_toBottomOf="@id/keyboard"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="29dp"
|
android:textSize="18sp"
|
android:gravity="center"
|
android:layout_marginTop="15dp"
|
android:paddingHorizontal="40dp"
|
android:textColor="@color/white"
|
android:textStyle="bold"
|
android:text="Confirm"
|
android:background="@drawable/bg_oragne_6"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</LinearLayout>
|