2023-06-19 16:30:43 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<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"
|
2023-07-07 15:26:11 +05:30
|
|
|
tools:context="com.example.hposregistration.ui.fragments.registration.AbhaRegistrationFragment">
|
2023-06-19 16:30:43 +05:30
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_title"
|
|
|
|
|
style="@style/title1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:text="@string/scan_person_abha_id_card"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btn_scan_now"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:text="@string/scan_now"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
app:backgroundTint="@color/primary_light"
|
|
|
|
|
app:cornerRadius="100dp"
|
|
|
|
|
app:icon="@drawable/ic_qr_code_scanner"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/seperator1"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/btn_scan_now">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvText1"
|
|
|
|
|
style="@style/title1_1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:text="@string/or"
|
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/view"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="2dp"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:background="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tvText1"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tvText1"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvText1" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/view2"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="2dp"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:background="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tvText1"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/tvText1"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvText1" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_title2"
|
|
|
|
|
style="@style/title1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
android:text="@string/enter_abha_number_manualy"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/seperator1" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/til_name"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_title2">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/et_name"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/person_s_name" />
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/et_abhaId_holder"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/til_name">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/etAbhaId"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/abha_id"
|
|
|
|
|
android:inputType="number"
|
|
|
|
|
android:maxLength="14" />
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/et_aadharID"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/et_abhaId_holder">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/aadharID"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/aadhaar_number"
|
|
|
|
|
android:inputType="number"
|
|
|
|
|
android:maxLength="12" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
2023-06-21 11:15:58 +05:30
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/et_centerName"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/et_aadharID">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/centerName"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/center_name"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:maxLength="12" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
2023-06-19 16:30:43 +05:30
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_scanMessage"
|
|
|
|
|
style="@style/title2"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2023-06-21 11:15:58 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@+id/et_centerName" />
|
2023-06-19 16:30:43 +05:30
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnProceed"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:text="@string/proceed"
|
|
|
|
|
app:cornerRadius="16dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_scanMessage" />
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/seperator2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/btnProceed">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvText2"
|
|
|
|
|
style="@style/title1_1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
|
android:text="@string/or"
|
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/view3"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="2dp"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:background="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tvText2"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tvText2"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvText2" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/view4"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="2dp"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:background="@color/gray"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tvText2"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/tvText2"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvText2" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_title3"
|
|
|
|
|
style="@style/title1"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
|
android:text="@string/create_abha_id_card"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/seperator2" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btn_click_here"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:text="@string/click_here"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
app:backgroundTint="@color/primary_light"
|
|
|
|
|
app:cornerRadius="100dp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_title3" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/errorMessageCL"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="#80000000"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/itemErrorMessage"
|
|
|
|
|
layout="@layout/item_error_message"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/progressBarCL"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="#80000000"
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:indeterminateDrawable="@drawable/progressbar_costume_view"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|