<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res-auto"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:paddingBottom="@dimen/wizard_footer_height"
                android:paddingLeft="@dimen/wizard_contents_padding_horizontal"
                android:paddingRight="@dimen/wizard_contents_padding_horizontal"
                android:paddingTop="@dimen/wizard_contents_padding">

	<TextView
		style="@style/WizardTitleText"
		android:id="@+id/wizard_welcome"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_centerHorizontal="true"
		android:layout_marginTop="8dp"
		android:gravity="center_horizontal"
		android:text="@string/new_wizard_done_title"/>

	<TextView
		android:id="@+id/wizard_your_nickname"
		style="@style/WizardSummaryTitleText"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/wizard_welcome"
		android:layout_marginTop="@dimen/wizard_paragraph_height"
		android:text="@string/public_nickname"/>

	<LinearLayout
		android:id="@+id/wizard_nickname_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_below="@id/wizard_your_nickname"
		android:layout_marginTop="8dp"
		android:gravity="center_vertical"
		android:orientation="horizontal">

		<ImageView
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginRight="8dp"
			app:srcCompat="@drawable/ic_person_outline"
			app:tint="@android:color/white" />

		<View
			android:layout_width="1dp"
			android:layout_height="24dp"
			android:background="@color/wizard_alpha_background"/>

		<TextView
			android:id="@+id/wizard_nickname_preset"
			style="@style/WizardSummaryBodyText"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="8dp"/>

	</LinearLayout>

	<View
		android:id="@+id/separator1"
		android:layout_width="match_parent"
		android:layout_height="1dp"
		android:layout_below="@id/wizard_nickname_layout"
		android:layout_marginTop="12dp"
		android:background="@color/wizard_alpha_background"/>

	<TextView
		android:id="@+id/linked_to"
		style="@style/WizardSummaryTitleText"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/separator1"
		android:layout_marginTop="@dimen/wizard_summary_spacing"
		android:text="@string/new_wizard_linked_to"/>

	<LinearLayout
		android:id="@+id/wizard_phone_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_below="@id/linked_to"
		android:layout_marginTop="8dp"
		android:gravity="center_vertical"
		android:orientation="horizontal">

		<ImageView
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginRight="8dp"
			app:srcCompat="@drawable/ic_call_outline"
			app:tint="@android:color/white" />

		<View
			android:layout_width="1dp"
			android:layout_height="24dp"
			android:background="@color/wizard_alpha_background"/>

		<FrameLayout
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_gravity="center_vertical">

			<TextView
				android:id="@+id/wizard_phone_preset"
				style="@style/WizardSummaryBodyText"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_gravity="center_vertical"
				android:layout_marginLeft="8dp"/>

			<ProgressBar
				android:id="@+id/wizard_phone_progress"
				android:layout_width="24dp"
				android:layout_height="24dp"
				android:layout_marginLeft="8dp"
				android:indeterminate="true"
				android:maxHeight="24dp"
				android:maxWidth="24dp"
				android:visibility="gone"/>

		</FrameLayout>

	</LinearLayout>

	<LinearLayout
		android:id="@+id/wizard_phone_error_layout"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/wizard_phone_layout"
		android:layout_marginLeft="40dp"
		android:orientation="horizontal">

		<ImageView
			android:id="@+id/wizard_phone_warn"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:src="@drawable/ic_error_red_24dp"
			android:visibility="gone"/>

		<TextView
			android:id="@+id/wizard_phone_error_text"
			style="@style/WizardSummaryBodyText"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="8dp"
			android:clickable="true"
			android:ellipsize="end"
			android:maxLines="2"
			android:visibility="gone"/>

	</LinearLayout>

	<LinearLayout
		android:id="@+id/wizard_email_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_below="@id/wizard_phone_error_layout"
		android:layout_marginTop="16dp"
		android:gravity="center_vertical"
		android:orientation="horizontal">

		<ImageView
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginRight="8dp"
			app:srcCompat="@drawable/ic_email_outline"
			app:tint="@android:color/white" />

		<View
			android:layout_width="1dp"
			android:layout_height="24dp"
			android:background="@color/wizard_alpha_background"/>

		<FrameLayout
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_gravity="center_vertical">

			<TextView
				android:id="@+id/wizard_email_preset"
				style="@style/WizardSummaryBodyText"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_gravity="center_vertical"
				android:layout_marginLeft="8dp"/>

			<ProgressBar
				android:id="@+id/wizard_email_progress"
				android:layout_width="24dp"
				android:layout_height="24dp"
				android:layout_marginLeft="8dp"
				android:indeterminate="true"
				android:maxHeight="24dp"
				android:maxWidth="24dp"
				android:visibility="gone"/>

		</FrameLayout>

	</LinearLayout>

	<LinearLayout
		android:id="@+id/wizard_email_error_layout"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/wizard_email_layout"
		android:layout_marginLeft="40dp"
		android:orientation="horizontal">

		<ImageView
			android:id="@+id/wizard_email_warn"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:src="@drawable/ic_error_red_24dp"
			android:visibility="gone"/>

		<TextView
			android:id="@+id/wizard_email_error_text"
			style="@style/WizardSummaryBodyText"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="8dp"
			android:clickable="true"
			android:ellipsize="end"
			android:maxLines="2"
			android:visibility="gone"/>

	</LinearLayout>

	<View
		android:id="@+id/separator2"
		android:layout_width="match_parent"
		android:layout_height="1dp"
		android:layout_below="@id/wizard_email_error_layout"
		android:layout_marginTop="12dp"
		android:background="@color/wizard_alpha_background"/>

	<TextView
		android:id="@+id/sync_contacts"
		style="@style/WizardSummaryTitleText"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/separator2"
		android:layout_marginTop="@dimen/wizard_summary_spacing"
		android:text="@string/prefs_title_sync_contacts"/>

	<LinearLayout
		android:id="@+id/sync_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_below="@id/sync_contacts"
		android:layout_marginTop="8dp"
		android:orientation="horizontal">

		<ProgressBar
			android:id="@+id/wizard_contact_sync_progress"
			android:layout_width="24dp"
			android:layout_height="24dp"
			android:layout_marginRight="8dp"
			android:indeterminate="true"
			android:maxHeight="24dp"
			android:maxWidth="24dp"
			android:visibility="gone"/>

		<TextView
			android:id="@+id/sync_contacts_preset"
			style="@style/WizardSummaryBodyText"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_gravity="center_vertical"/>

	</LinearLayout>

	<View
		android:id="@+id/separator3"
		android:layout_width="match_parent"
		android:layout_height="1dp"
		android:layout_below="@id/sync_layout"
		android:layout_marginTop="12dp"
		android:background="@color/wizard_alpha_background"/>

	<TextView
		android:id="@+id/threema_safe"
		style="@style/WizardSummaryTitleText"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@id/separator3"
		android:layout_marginTop="@dimen/wizard_summary_spacing"
		android:text="@string/threema_safe"/>

	<LinearLayout
		android:id="@+id/safe_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_below="@id/threema_safe"
		android:layout_marginTop="8dp"
		android:orientation="horizontal">

		<ProgressBar
			android:id="@+id/threema_safe_progress"
			android:layout_width="24dp"
			android:layout_height="24dp"
			android:layout_marginRight="8dp"
			android:indeterminate="true"
			android:maxHeight="24dp"
			android:maxWidth="24dp"
			android:visibility="gone"/>

		<TextView
			android:id="@+id/threema_safe_preset"
			style="@style/WizardSummaryBodyText"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:maxLines="1"
			android:ellipsize="end"
			android:layout_gravity="center_vertical"/>

	</LinearLayout>

	<androidx.appcompat.widget.AppCompatButton
		android:id="@+id/wizard_finish"
		style="@style/WizardButtonRegular"
		android:layout_width="match_parent"
		android:layout_alignParentBottom="true"
		android:layout_marginBottom="16dp"
		android:text="@string/finish"/>

</RelativeLayout>
