<?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"
            android:id="@+id/scroll_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@android:color/transparent">

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:orientation="vertical"
		android:paddingLeft="24dp"
		android:paddingRight="24dp">

		<TextView
			android:id="@+id/safe_enable_explain"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textColor="?attr/textColorPrimary"
			android:layout_marginTop="8dp"
			android:text="@string/safe_configure_server_explain"
			android:textSize="16sp"/>

		<androidx.appcompat.widget.SwitchCompat
			android:id="@+id/safe_switch_server"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_marginTop="16dp"
			android:checked="true"
			android:enabled="true"
			android:text="@string/safe_use_default_server"
			android:textSize="16sp"/>

		<LinearLayout
			android:id="@+id/safe_server_container"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_marginTop="16dp"
			android:orientation="vertical"
			android:visibility="gone">

			<com.google.android.material.textfield.TextInputLayout
				android:id="@+id/safe_server"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:hintAnimationEnabled="false"
				app:hintEnabled="false">

				<ch.threema.app.ui.PrefixEditText
					android:id="@+id/safe_edit_server"
					android:layout_width="match_parent"
					android:layout_height="match_parent"
					android:hint="@string/safe_enter_server_address_explain"
					android:inputType="textWebEditText"
					android:singleLine="true"
					android:tag="https://">

					<requestFocus/>
				</ch.threema.app.ui.PrefixEditText>

			</com.google.android.material.textfield.TextInputLayout>

			<TextView
				android:id="@+id/safe_credentials_title"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:textColor="?attr/textColorPrimary"
				android:layout_marginTop="8dp"
				android:text="@string/safe_configure_server_credentials_title"
				android:textSize="16sp"/>

			<com.google.android.material.textfield.TextInputLayout
				android:id="@+id/safe_username"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:hintAnimationEnabled="false"
				app:hintEnabled="true">

				<ch.threema.app.ui.ThreemaTextInputEditText
					android:id="@+id/safe_edit_username"
					android:layout_width="match_parent"
					android:layout_height="match_parent"
					android:hint="@string/username_hint"
					android:inputType="textWebEditText"
					android:singleLine="true">

				</ch.threema.app.ui.ThreemaTextInputEditText>

			</com.google.android.material.textfield.TextInputLayout>

			<com.google.android.material.textfield.TextInputLayout
				android:id="@+id/safe_server_password"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:hintAnimationEnabled="false"
				app:passwordToggleEnabled="true"
				app:hintEnabled="true">

				<ch.threema.app.ui.ThreemaTextInputEditText
					android:id="@+id/safe_edit_server_password"
					android:layout_width="match_parent"
					android:layout_height="match_parent"
					android:hint="@string/password_hint"
					android:inputType="textWebPassword"
					android:singleLine="true"
					android:tag="https://">

				</ch.threema.app.ui.ThreemaTextInputEditText>

			</com.google.android.material.textfield.TextInputLayout>

		</LinearLayout>

	</LinearLayout>
</ScrollView>
