<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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"
    tools:context="com.wismna.geoffroy.donext.fragments.MainFragment">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay">
        <include layout="@layout/toolbar" android:id="@+id/toolbar" />
    </android.support.design.widget.AppBarLayout>

    <android.support.constraint.ConstraintLayout
        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:layout_marginTop="?attr/actionBarSize">
        <android.support.constraint.Guideline
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/left_guideline"
            app:layout_constraintGuide_percent="0"
            android:orientation="vertical"/>
        <android.support.constraint.Guideline
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/center_guideline"
            app:layout_constraintGuide_percent=".20"
            android:orientation="vertical"/>
        <android.support.constraint.Guideline
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/right_guideline"
            app:layout_constraintGuide_percent="1"
            android:orientation="vertical"/>
        <android.widget.ListView
            android:id="@+id/list"
            android:layout_height="wrap_content"
            android:layout_width="0dp"
            android:choiceMode="singleChoice"
            android:listSelector="@drawable/tasklist_select"
            app:layout_constraintLeft_toRightOf="@+id/left_guideline"
            app:layout_constraintRight_toLeftOf="@+id/center_guideline" />
        <com.wismna.geoffroy.donext.widgets.NonSwipeableViewPager
            android:id="@+id/container"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_toEndOf="@id/list"
            android:background="@android:color/background_light"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            app:layout_constraintLeft_toRightOf="@+id/center_guideline"
            app:layout_constraintRight_toLeftOf="@+id/right_guideline" />
    </android.support.constraint.ConstraintLayout>

</android.support.design.widget.CoordinatorLayout>