<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/relative_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:focusableInTouchMode="true"
    tools:context=".authentication.server.ui.ServerFragment">

    <TextView
        android:id="@+id/text_headline"
        style="@style/Authentication.Headline.TextView"
        android:layout_centerHorizontal="true"
        android:text="@string/title_sign_in_your_server" />

    <EditText
        android:id="@+id/text_server_url"
        style="@style/Authentication.EditText"
        android:layout_below="@id/text_headline"
        android:layout_marginStart="-6dp"
        android:layout_marginTop="32dp"
        android:layout_toEndOf="@id/protocol_container"
        android:cursorVisible="false"
        android:hint="@string/default_server"
        android:imeOptions="actionDone"
        android:inputType="text|textUri"
        android:paddingEnd="0dp" />

    <FrameLayout
        android:id="@+id/protocol_container"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/style_edit_text_authentication"
        android:layout_marginStart="@dimen/screen_edge_left_and_right_margins"
        android:layout_below="@id/text_headline"
        android:layout_marginTop="32dp">
        <Spinner
            android:id="@+id/text_server_protocol"
            android:spinnerMode="dropdown"
            android:layout_width="120dp"
            android:layout_height="50dp"
            android:backgroundTint="@color/actionMenuColor" />
    </FrameLayout>

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/view_loading"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:visibility="gone"
        app:indicatorName="BallPulseIndicator"
        tools:visibility="visible" />

    <Button
        android:id="@+id/button_connect"
        style="@style/Authentication.Button"
        android:layout_alignParentBottom="true"
        android:text="@string/action_connect" />

</RelativeLayout>
