<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbars="vertical"
    tools:context=".fragments.list.sponsorblock.SponsorBlockFragment">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginStart="16dp"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="16dp"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal"
            android:layout_marginBottom="16dp">

            <org.schabi.newpipe.views.NewPipeTextView
                android:id="@+id/sponsor_block_controls_mark_segment_start"
                android:layout_width="0dp"
                android:layout_height="@dimen/detail_control_height"
                android:layout_weight="1.4"
                android:layout_gravity="center_vertical"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:clickable="true"
                android:contentDescription="@string/sponsor_block_mark_the_start_of_a_segment"
                android:drawableTop="@drawable/ic_chevron_right"
                android:focusable="true"
                android:gravity="center"
                android:paddingVertical="@dimen/detail_control_padding"
                android:text="@string/start"
                android:textSize="@dimen/detail_control_text_size" />

            <Space
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="0.4">
            </Space>

            <org.schabi.newpipe.views.NewPipeTextView
                android:id="@+id/sponsor_block_controls_mark_segment_end"
                android:layout_width="0dp"
                android:layout_height="@dimen/detail_control_height"
                android:layout_weight="1.4"
                android:layout_gravity="center_vertical"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:clickable="true"
                android:contentDescription="@string/sponsor_block_mark_the_end_of_a_segment"
                android:drawableTop="@drawable/ic_chevron_left"
                android:focusable="true"
                android:gravity="center"
                android:paddingVertical="@dimen/detail_control_padding"
                android:text="@string/end"
                android:textSize="@dimen/detail_control_text_size" />

            <Space
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="0.4" >
            </Space>

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="5"
                android:layout_gravity="center"
                android:gravity="center_horizontal">
                <TextView
                    android:id="@+id/sponsor_block_controls_segment_start"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:clickable="true"
                    android:focusable="true"
                    android:background="?android:attr/selectableItemBackground"
                    android:textAlignment="center"
                    android:text="00:00:00"
                    tools:ignore="HardcodedText" />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="4dp"
                    android:layout_marginEnd="4dp"
                    android:textAlignment="center"
                    android:text="-"
                    tools:ignore="HardcodedText" />
                <TextView
                    android:id="@+id/sponsor_block_controls_segment_end"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:clickable="true"
                    android:focusable="true"
                    android:background="?android:attr/selectableItemBackground"
                    android:textAlignment="center"
                    android:text="00:00:00"
                    tools:ignore="HardcodedText" />
            </LinearLayout>

            <Space
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="0.4" >
            </Space>

            <org.schabi.newpipe.views.NewPipeTextView
                android:id="@+id/sponsor_block_controls_clear_segment"
                android:layout_width="0dp"
                android:layout_height="@dimen/detail_control_height"
                android:layout_weight="1.4"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:clickable="true"
                android:contentDescription="@string/sponsor_block_clear_segment"
                android:drawableTop="@drawable/ic_delete"
                android:focusable="true"
                android:gravity="center"
                android:paddingVertical="@dimen/detail_control_padding"
                android:text="@string/clear"
                android:textSize="@dimen/detail_control_text_size" />

            <Space
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:layout_weight="0.4">
            </Space>

            <org.schabi.newpipe.views.NewPipeTextView
                android:id="@+id/sponsor_block_controls_submit_segment"
                android:layout_width="0dp"
                android:layout_height="@dimen/detail_control_height"
                android:layout_weight="1.4"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:clickable="true"
                android:contentDescription="@string/sponsor_block_submit_segment"
                android:drawableTop="@drawable/ic_upload"
                android:focusable="true"
                android:gravity="center"
                android:paddingVertical="@dimen/detail_control_padding"
                android:text="@string/submit"
                android:textSize="@dimen/detail_control_text_size" />

        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginBottom="16dp"
            android:background="?android:attr/listDivider" />

        <androidx.appcompat.widget.SwitchCompat
            android:id="@+id/skipping_is_enabled_switch"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:text="@string/sponsor_block_skip_marked_segments"
            android:textColor="?android:attr/textColorPrimary" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginBottom="16dp"
            android:background="?android:attr/listDivider" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/segment_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            tools:listitem="@layout/list_segments_item"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
    </LinearLayout>
</androidx.core.widget.NestedScrollView>
