<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:colorBackground"
    android:orientation="vertical">

    <TextView
        android:id="@+id/bottom_leave_space_warning_text"
        style="@style/Widget.Vector.TextView.Subtitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginTop="20dp"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:layout_marginBottom="8dp"
        android:textColor="?vctr_content_primary"
        tools:text="@string/space_leave_prompt_msg_with_name" />

    <RadioGroup
        android:id="@+id/autoLeaveRadioGroup"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingStart="?dialogPreferredPadding"
        android:paddingTop="12dp"
        android:paddingEnd="?dialogPreferredPadding"
        android:paddingBottom="12dp">

        <RadioButton
            android:id="@+id/leave_all"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/leave_all_rooms_and_spaces"
            tools:checked="true" />

        <RadioButton
            android:id="@+id/leave_none"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minWidth="180dp"
            android:text="@string/dont_leave_any" />

        <RadioButton
            android:id="@+id/leave_selected"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minWidth="180dp"
            android:text="@string/leave_specific_ones" />

    </RadioGroup>

    <TextView
        android:id="@+id/inlineErrorText"
        style="@style/Widget.Vector.TextView.Body"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginTop="4dp"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:textColor="?colorError"
        tools:visibility="visible"
        tools:text="@string/error_no_network"
        android:visibility="gone" />

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginTop="20dp"
        android:layout_marginEnd="16dp">

        <ProgressBar
            android:id="@+id/leaveProgress"
            style="?android:attr/progressBarStyle"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_gravity="center"
            android:visibility="gone"
            tools:visibility="visible" />

        <Button
            android:id="@+id/leaveButton"
            style="@style/Widget.Vector.Button.Destructive"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:layout_gravity="center_horizontal"
            android:text="@string/leave_space" />


    </FrameLayout>

    <Button
        android:id="@+id/cancelButton"
        style="@style/Widget.Vector.Button.Text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:layout_marginStart="16dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="16dp"
        android:layout_marginBottom="8dp"
        android:text="@string/cancel" />


</LinearLayout>