2020-05-08 15:23:03 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<ScrollView 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:id="@+id/root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fillViewport="true">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-05 11:25:23 +10:00
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:paddingStart="@dimen/keyline_5"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:paddingEnd="@dimen/keyline_5"
|
|
|
|
android:paddingBottom="@dimen/keyline_9">
|
2020-05-08 15:23:03 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_headline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:text="@string/personal_details_headline"
|
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textAppearance="?textAppearanceHeadline2"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_name_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/keyline_4"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:importantForAccessibility="no"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:text="@string/personal_details_name_title"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textAppearance="?textAppearanceBody1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_headline" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/personal_details_name"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/text_field_height"
|
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
|
|
|
android:background="@drawable/edittext_modified_states"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:contentDescription="@string/personal_details_name_content_description"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:inputType="textPersonName"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingStart="@dimen/keyline_1"
|
|
|
|
android:paddingEnd="@dimen/keyline_1"
|
|
|
|
android:singleLine="true"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/slack_black"
|
|
|
|
android:textColorHighlight="@color/dark_cerulean_3"
|
|
|
|
android:textCursorDrawable="@null"
|
|
|
|
android:textSize="@dimen/text_body_small"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_name_title"
|
|
|
|
tools:text="John Smith" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_name_error"
|
|
|
|
android:layout_width="0dp"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:text="@string/personal_details_name_characters_prompt"
|
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/error"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_name"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/personal_details_name_barrier"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="personal_details_name,personal_details_name_error" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_age_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/keyline_4"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:importantForAccessibility="no"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:text="@string/personal_details_age_title"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textAppearance="?textAppearanceBody1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_name_barrier" />
|
|
|
|
|
2020-07-21 15:45:27 +10:00
|
|
|
<au.gov.health.covidsafe.ui.onboarding.fragment.personal.SelectionCallbackSpinner
|
2020-05-08 15:23:03 +10:00
|
|
|
android:id="@+id/personal_details_age"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/text_field_height"
|
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
|
|
|
android:background="@drawable/edit_text_black_background"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:contentDescription="@string/personal_details_age_content_description"
|
|
|
|
android:gravity="center_vertical|start"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:paddingStart="@dimen/keyline_1"
|
|
|
|
android:paddingEnd="@dimen/keyline_1"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/slack_black"
|
|
|
|
android:textColorHighlight="@color/dark_cerulean_3"
|
|
|
|
android:textCursorDrawable="@null"
|
|
|
|
android:textSize="@dimen/text_body_small"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-07-21 15:45:27 +10:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_age_title" />
|
2020-05-08 15:23:03 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_age_error"
|
|
|
|
android:layout_width="0dp"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:text="@string/personal_details_age_error_prompt"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/error"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_age"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/personal_details_age_barrier"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="personal_details_age,personal_details_age_error" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_post_code_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/keyline_4"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:importantForAccessibility="no"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:text="@string/personal_details_post_code"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textAppearance="?textAppearanceBody1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_age_barrier" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/personal_details_post_code"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/text_field_height"
|
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
|
|
|
android:background="@drawable/edittext_modified_states"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:contentDescription="@string/personal_details_post_code_content_description"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:digits="0123456789"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:imeOptions="actionDone"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:inputType="number"
|
|
|
|
android:maxLength="4"
|
|
|
|
android:paddingStart="@dimen/keyline_1"
|
|
|
|
android:paddingEnd="@dimen/keyline_1"
|
2020-07-03 14:26:19 +10:00
|
|
|
android:textDirection="locale"
|
|
|
|
android:textAlignment="viewStart"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/slack_black"
|
|
|
|
android:textColorHighlight="@color/dark_cerulean_3"
|
|
|
|
android:textCursorDrawable="@null"
|
|
|
|
android:textSize="@dimen/text_body_small"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_post_code_title"
|
|
|
|
tools:text="John Smith" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/personal_details_post_code_error"
|
|
|
|
android:layout_width="0dp"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:layout_marginTop="@dimen/keyline_1"
|
2020-06-19 17:41:15 +10:00
|
|
|
android:text="@string/personal_details_post_code_error_prompt"
|
2020-05-08 15:23:03 +10:00
|
|
|
android:textColor="@color/error"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/personal_details_post_code"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/personal_details_barrier"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="personal_details_post_code,personal_details_post_code_error" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|