348 lines
13 KiB
XML
348 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:background="@color/white_bg"
|
|
android:overScrollMode="never">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/back_btn"
|
|
android:layout_width="35sp"
|
|
android:layout_height="35sp"
|
|
android:contentDescription="@string/back_button"
|
|
android:padding="5dp"
|
|
android:paddingStart="-15dp"
|
|
android:paddingEnd="0dp"
|
|
android:src="@drawable/arrow_back"
|
|
android:layout_margin="15dp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/add_medical_information"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textAppearance="@style/TextAppearance.Material3.HeadlineMedium"
|
|
android:textColor="@color/black"
|
|
android:layout_marginHorizontal="15dp"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/diagnosis"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="35sp"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/diagnosis"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/edit_text_bg_2"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:hint="@string/enter_diagnosis"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:drawableStart="@drawable/ic_diagnosis"
|
|
android:drawablePadding="10dp"
|
|
|
|
android:inputType="text|textCapSentences"
|
|
android:maxLines="1"
|
|
|
|
android:maxLength="255"
|
|
android:digits="@string/allowed_alphanumeric_space_special"
|
|
android:singleLine="true"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/primary_care_doctor"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="15dp"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/primary_doc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/edit_text_bg_2"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:hint="@string/enter_primary_doctor_number"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:drawableStart="@drawable/ic_stethoscope"
|
|
android:drawablePadding="10dp"
|
|
|
|
android:inputType="textCapWords"
|
|
|
|
android:maxLength="50"
|
|
|
|
android:singleLine="true"
|
|
android:digits="@string/allowed_alphabets_with_space"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/doctor_contact_number"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="15dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:background="@drawable/edit_text_bg_2"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/phone_number"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:src="@drawable/ic_doc_contact"
|
|
android:layout_marginVertical="10dp"/>
|
|
|
|
<com.skydoves.powerspinner.PowerSpinnerView
|
|
android:id="@+id/country_codes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/white_bg"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="10dp"
|
|
android:textColor="@color/black"
|
|
android:textSize="14.5sp"
|
|
|
|
app:spinner_arrow_drawable="@drawable/ic_down"
|
|
|
|
app:spinner_popup_max_height="200dp"
|
|
app:spinner_arrow_animate="true"
|
|
app:fontFamily="@font/nunito_regular"
|
|
|
|
app:spinner_arrow_gravity="end"
|
|
app:spinner_arrow_padding="8dp"
|
|
app:spinner_divider_show="true"
|
|
app:spinner_divider_size="0.4dp"
|
|
app:spinner_divider_color="@color/black"
|
|
app:spinner_item_height="46dp"
|
|
app:spinner_popup_animation="dropdown"
|
|
app:spinner_popup_background="@drawable/edit_text_bg_2"
|
|
app:spinner_popup_elevation="14dp" />
|
|
|
|
<View
|
|
android:layout_width="0.5dp"
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/darker_gray"
|
|
android:layout_marginVertical="10dp"/>
|
|
|
|
<EditText
|
|
android:id="@+id/phone_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:hint="@string/phone_number"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:autofillHints="phone"
|
|
android:inputType="number"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/hospital_preference"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="15dp"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/hospital_pref"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/edit_text_bg_2"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:hint="@string/enter_hospital_preference"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:drawableStart="@drawable/ic_hosp"
|
|
android:drawablePadding="10dp"
|
|
|
|
android:inputType="text|textCapWords"
|
|
android:maxLines="1"
|
|
|
|
android:maxLength="50"
|
|
android:digits="@string/allowed_alphanumeric_space_special"
|
|
android:singleLine="true"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/allergies"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="15dp"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/allergies"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/edit_text_bg_2"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:hint="@string/enter_allergies"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:drawableStart="@drawable/ic_allergy"
|
|
android:drawablePadding="10dp"
|
|
|
|
android:inputType="text|textCapSentences"
|
|
android:maxLines="1"
|
|
|
|
android:maxLength="255"
|
|
android:digits="@string/allowed_alphanumeric_space_special"
|
|
android:singleLine="true"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/diet_restriction"
|
|
android:fontFamily="@font/nunito_medium"
|
|
android:textColor="@color/black"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:layout_gravity="start"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginTop="15dp"
|
|
/>
|
|
|
|
<EditText
|
|
android:id="@+id/diet_restrict"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/edit_text_bg_2"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:hint="@string/enter_diet_restriction"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@android:color/darker_gray"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
|
|
android:paddingVertical="15dp"
|
|
android:padding="10dp"
|
|
|
|
android:drawableStart="@drawable/ic_diet_rest"
|
|
android:drawablePadding="10dp"
|
|
|
|
android:inputType="textCapSentences"
|
|
android:singleLine="true"
|
|
|
|
android:maxLength="255"
|
|
android:digits="@string/allowed_alphanumeric_space_special"
|
|
/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/add_btn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:layout_marginTop="25dp"
|
|
android:text="@string/add"
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
|
|
android:textAllCaps="false"
|
|
android:fontFamily="@font/nunito_regular"
|
|
android:textColor="@color/white_bg"
|
|
android:paddingVertical="15dp"
|
|
app:backgroundTint="@color/color_primary"
|
|
app:cornerRadius="15dp"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |