<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/kbs_very_light_blue">

    <com.google.android.material.tabs.TabLayout
        android:id="@+id/task_tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        app:tabSelectedTextColor="@color/kbs_logo_blue"
        app:tabIndicatorColor="@color/kbs_logo_blue">
    </com.google.android.material.tabs.TabLayout>

    <!-- NY SJEKKBOKS: Vises kun under "Alle" -->
    <CheckBox
        android:id="@+id/cb_show_completed"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Vis også fullførte oppgaver"
        android:textColor="@color/kbs_muted_blue_gray"
        android:textSize="12sp"
        android:layout_gravity="end"
        android:layout_marginEnd="16dp"
        android:layout_marginTop="4dp"
        android:visibility="gone"/>

    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
        android:id="@+id/swipe_refresh_tasks"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recycler_tasks"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:padding="8dp"
            android:clipToPadding="false" />

    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/fab_add_task"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end"
        android:layout_margin="24dp"
        android:src="@android:drawable/ic_input_add"
        app:backgroundTint="@color/kbs_logo_blue"
        app:tint="@color/white"
        android:contentDescription="Ny oppgave" />

</LinearLayout>