<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:paddingTop="10dp"
    android:animateLayoutChanges="true">
    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingStart="20dp"
            android:paddingEnd="20dp">

            <LinearLayout
                android:id="@+id/no_sources"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone"
                android:orientation="vertical">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:layout_marginTop="10dp"
                    android:layout_marginBottom="10dp">

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        app:srcCompat="@drawable/ic_error"
                        app:tint="#FFF" />

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textColor="#FFF"
                        android:textSize="12dp"
                        android:fontFamily="@font/inter_light"
                        android:text="@string/no_sources_installed"
                        android:layout_gravity="center"
                        android:layout_marginStart="8dp"/>

                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:id="@+id/container_enabled"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="16dp"
                    android:textColor="@color/white"
                    android:fontFamily="@font/inter_light"
                    android:text="@string/enabled" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="12dp"
                    android:textColor="@color/gray_ac"
                    android:fontFamily="@font/inter_extra_light"
                    android:text="@string/the_top_source_will_be_considered_primary" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/recycler_sources_enabled"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingTop="10dp"
                    android:paddingBottom="10dp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/container_disabled"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="16dp"
                    android:textColor="@color/white"
                    android:fontFamily="@font/inter_light"
                    android:text="@string/disabled" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="12dp"
                    android:textColor="@color/gray_ac"
                    android:fontFamily="@font/inter_extra_light"
                    android:text="@string/these_sources_have_been_disabled" />

                <LinearLayout
                    android:id="@+id/container_disabled_views"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:paddingTop="10dp" />
            </LinearLayout>
            <LinearLayout
                android:id="@+id/container_construction"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingBottom="10dp">

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/plugin_disclaimer"
                android:orientation="horizontal"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    app:srcCompat="@drawable/ic_error"
                    app:tint="#939393" />

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:textColor="#939393"
                    android:textSize="12dp"
                    android:fontFamily="@font/inter_light"
                    android:text="@string/enabling_lots_of_sources_can_reduce_the_loading_speed_of_your_application"
                    android:layout_gravity="center"
                    android:layout_marginStart="8dp"/>

            </LinearLayout>

            <com.futo.platformplayer.views.buttons.BigButton
                android:id="@+id/button_add_sources"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                app:buttonIcon="@drawable/ic_explore"
                app:buttonText="Add Sources"
                app:buttonSubText="Install new sources to see more content."
                />

        </LinearLayout>
    </androidx.core.widget.NestedScrollView>


</LinearLayout>
