150 lines
6.0 KiB
XML
150 lines
6.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ // Copyright (c) 2024 ShanMukha Innovations Pvt. Ltd. All rights reserved.
|
|
~ // Notice: All information contained herein is, and remains
|
|
~ // the property of ShanMukha Innovations Pvt. Ltd. and its suppliers,
|
|
~ // if any. The intellectual and technical concepts contained
|
|
~ // herein are proprietary to ShanMukha Innovations Pvt. Ltd.
|
|
~ // and its suppliers and may be covered by Indian and Foreign Patents,
|
|
~ // patents in process, and are protected by trade secret or copyright law.
|
|
~ // Dissemination of this information or reproduction of this material
|
|
~ // is strictly forbidden unless prior written permission is obtained
|
|
~ // from ShanMukha Innovations Pvt. Ltd.
|
|
-->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
>
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/app_bar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:theme="@style/Theme.HPOS.AppBarOverlay">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
app:popupTheme="@style/Theme.HPOS.PopupOverlay" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
style="@style/title1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/scan_qr_code_of_the_kit"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/app_bar_layout" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_scan_now"
|
|
android:layout_width="258dp"
|
|
android:layout_height="56dp"
|
|
android:layout_margin="24dp"
|
|
android:drawableLeft="@drawable/baseline_qr_code_scanner_24"
|
|
android:text="@string/scan_now"
|
|
android:textColor="@color/black"
|
|
app:backgroundTint="@color/blue_app_light"
|
|
app:cornerRadius="100dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/seperator1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:layout_marginTop="48dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btn_scan_now">
|
|
|
|
<TextView
|
|
android:id="@+id/tvText1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/or"
|
|
android:textColor="@color/gray" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_toLeftOf="@id/tvText1"
|
|
android:background="@color/gray" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_toRightOf="@id/tvText1"
|
|
android:background="@color/gray" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title2"
|
|
style="@style/title1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:layout_marginTop="48dp"
|
|
android:text="@string/enter_kit_serial_number_manually"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/seperator1" />
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/et_abha_id"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="20dp"
|
|
app:layout_constraintEnd_toStartOf="@id/btn_go"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_title2">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/name_edit_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLength="27"
|
|
android:inputType="text"
|
|
android:hint="@string/serial_number" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_go"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="24dp"
|
|
android:text="@string/go"
|
|
app:cornerRadius="16dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/et_abha_id"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="1.0"
|
|
app:layout_constraintStart_toEndOf="@id/et_abha_id"
|
|
app:layout_constraintTop_toTopOf="@id/et_abha_id" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |