<?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"
        android:paddingBottom="@dimen/keyline_1"
        android:layout_marginTop="@dimen/keyline_1">

        <TextView
            android:id="@+id/enter_number_page_headline"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginEnd="@dimen/keyline_5"
            android:gravity="center_vertical|start"
            android:text="@string/enter_number_headline"
            android:textAlignment="viewStart"
            android:textAppearance="?textAppearanceHeadline2"
            android:textSize="28sp"
            android:textStyle="bold"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:id="@+id/select_country_or_region"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="@dimen/keyline_5"
            android:layout_marginEnd="@dimen/keyline_5"
            android:gravity="center_vertical|start"
            android:text="@string/select_country_or_region"
            android:textAlignment="viewStart"
            android:textAppearance="?textAppearanceBody1"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_page_headline" />

        <FrameLayout
            android:id="@+id/country_selection_box"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="@dimen/keyline_4"
            android:layout_marginEnd="@dimen/keyline_5"
            android:background="@drawable/edit_text_black_background"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/select_country_or_region">

            <TextView
                android:id="@+id/country_name_code"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/keyline_2"
                android:gravity="start|center_vertical"
                android:textAlignment="viewStart"
                android:textAppearance="?textAppearanceBody1" />

            <ImageView
                android:id="@+id/national_flag"
                android:layout_width="30dp"
                android:layout_height="22dp"
                android:layout_gravity="end|center_vertical"
                android:layout_marginEnd="@dimen/keyline_6" />

            <ImageView
                android:layout_width="6dp"
                android:layout_height="12dp"
                android:layout_gravity="end|center_vertical"
                android:layout_marginEnd="@dimen/keyline_4"
                android:src="@drawable/ic_right"
                android:textAlignment="viewEnd" />

        </FrameLayout>

        <TextView
            android:id="@+id/registration_error"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="6dp"
            android:layout_marginEnd="@dimen/keyline_5"
            android:gravity="center_vertical|start"
            android:importantForAccessibility="no"
            android:text="@string/geoblock_rego_error"
            android:textAlignment="viewStart"
            android:singleLine="false"
            android:textColor="@color/error_red"
            android:textAppearance="?textAppearanceBody1"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/country_selection_box"
            android:visibility="gone"/>

        <TextView
            android:id="@+id/enter_number_headline"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="@dimen/keyline_5"
            android:layout_marginEnd="@dimen/keyline_5"
            android:gravity="center_vertical|start"
            android:importantForAccessibility="no"
            android:text="@string/enter_number_headline"
            android:textAlignment="viewStart"
            android:textAppearance="?textAppearanceBody1"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/registration_error" />

        <EditText
            android:id="@+id/enter_number_phone_number"
            android:layout_width="0dp"
            android:layout_height="@dimen/text_field_height"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="@dimen/keyline_4"
            android:layout_marginEnd="@dimen/keyline_5"
            android:autofillHints="phoneNational"
            android:background="@drawable/edittext_modified_states"
            android:contentDescription="@string/enter_number_headline"
            android:digits="0123456789"
            android:inputType="number|phone"
            android:maxLength="20"
            android:maxLines="1"
            android:paddingStart="@dimen/keyline_1"
            android:paddingEnd="@dimen/keyline_1"
            android:singleLine="true"
            android:textAlignment="viewStart"
            android:textColor="@color/slack_black"
            android:textColorHighlight="@color/dark_cerulean_3"
            android:textCursorDrawable="@null"
            android:textSize="@dimen/text_phone_number"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_headline" />

        <TextView
            android:id="@+id/invalid_phone_number"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:layout_marginEnd="@dimen/keyline_5"
            android:text="@string/invalid_phone_number"
            android:textAlignment="viewStart"
            android:textColor="@color/error_red"
            android:textSize="16sp"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.0"
            app:layout_constraintStart_toStartOf="@+id/enter_number_phone_number"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_phone_number"
            tools:text="@string/invalid_phone_number"
            tools:visibility="visible" />

        <TextView
            android:id="@+id/enter_number_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_5"
            android:layout_marginTop="@dimen/keyline_4"
            android:layout_marginEnd="@dimen/keyline_5"
            android:text="@string/enter_number_content"
            android:textAlignment="viewStart"
            android:textAppearance="?textAppearanceBody1"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/invalid_phone_number"
            tools:text="@string/enter_number_content" />

        <FrameLayout
            android:id="@+id/enter_number_relativebackground"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_marginStart="@dimen/keyline_4"
            android:layout_marginEnd="@dimen/keyline_4"
            android:background="@drawable/background_light_green"
            app:layout_constraintBottom_toBottomOf="@+id/enter_number_bottom_margin"
            app:layout_constraintTop_toTopOf="@+id/enter_number_top_margin" />

        <Space
            android:id="@+id/enter_number_top_margin"
            android:layout_width="match_parent"
            android:layout_height="@dimen/keyline_4"
            android:layout_marginTop="@dimen/keyline_4"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_content" />

        <ImageView
            android:id="@+id/enter_number_relative_icon"
            android:layout_width="@dimen/icon_size"
            android:layout_height="@dimen/icon_size"
            android:layout_marginStart="@dimen/keyline_4"
            android:src="@drawable/ic_info"
            app:layout_constraintStart_toStartOf="@+id/enter_number_relativebackground"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_top_margin" />

        <TextView
            android:id="@+id/enter_number_relative"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/keyline_1"
            android:layout_marginEnd="@dimen/keyline_4"
            android:text="@string/enter_number_relative"
            android:textAlignment="viewStart"
            android:textAppearance="?textAppearanceBody2"
            android:textColor="@color/slack_black"
            app:layout_constraintEnd_toEndOf="@+id/enter_number_relativebackground"
            app:layout_constraintStart_toEndOf="@+id/enter_number_relative_icon"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_top_margin" />

        <Space
            android:id="@+id/enter_number_bottom_margin"
            android:layout_width="match_parent"
            android:layout_height="@dimen/keyline_4"
            app:layout_constraintTop_toBottomOf="@+id/enter_number_relative" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>