<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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=".ui.MainActivity">

    <com.applicaster.xray.ui.views.DefaultViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toTopOf="@+id/btn_log_some"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <androidx.viewpager.widget.PagerTabStrip
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="top"
            android:background="@color/colorPagerTabStrip"
            android:padding="8dp"
            android:textColor="@android:color/white" />

        <fragment
            android:id="@+id/fragment"
            android:name="com.applicaster.xray.ui.fragments.EventLogFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:sink_name="memory_sink"
            app:default_level="info"/>

        <fragment
            android:id="@+id/default_logfile_fragment"
            android:name="com.applicaster.xray.ui.fragments.FileLogFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:file_name="default.log" />

        <fragment
            android:id="@+id/error_logfile_fragment"
            android:name="com.applicaster.xray.ui.fragments.FileLogFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:file_name="errors.log" />

    </com.applicaster.xray.ui.views.DefaultViewPager>

    <Button
        android:id="@+id/btn_crash"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Crash!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toRightOf="@+id/btn_log_some"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/pager" />

    <Button
        android:id="@+id/btn_log_some"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Come log some"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/btn_crash"
        app:layout_constraintTop_toBottomOf="@+id/pager" />

</androidx.constraintlayout.widget.ConstraintLayout>