<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:id="@+id/container"
    tools:context=".MainActivity">

    <ScrollView
        tools:ignore="UselessParent"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:id="@+id/stuff"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content">

            <Button
                style="@style/Mozac.Widgets.NeutralButton"
                android:id="@+id/buttonSignIn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/sign_in"
                android:textAlignment="center" />

            <Button
                style="@style/Mozac.Widgets.NeutralButton"
                android:id="@+id/buttonSync"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/buttonSignIn"
                android:text="@string/sync"
                android:textAlignment="center" />

            <Button
                style="@style/Mozac.Widgets.NeutralButton"
                android:id="@+id/refreshDevice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/buttonSync"
                android:text="@string/refresh_device"
                android:textAlignment="center" />

            <Button
                style="@style/Mozac.Widgets.NeutralButton"
                android:id="@+id/sendTab"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/refreshDevice"
                android:text="@string/send_tab"
                android:textAlignment="center" />

            <Button
                style="@style/Mozac.Widgets.NeutralButton"
                android:id="@+id/buttonLogout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/sendTab"
                android:text="@string/log_out"
                android:textAlignment="center" />

            <TextView
                android:id="@+id/fxaStatusView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/buttonLogout"
                android:text="" />

            <TextView
                android:id="@+id/syncStatus"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/fxaStatusView"
                android:text="" />

            <TextView
                android:id="@+id/historySyncResult"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/syncStatus"
                android:text="" />

            <TextView
                android:id="@+id/bookmarksSyncResult"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/historySyncResult"
                android:text="" />

            <TextView
                android:id="@+id/currentDeviceLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/bookmarksSyncResult"
                style="?android:attr/listSeparatorTextViewStyle"
                android:text="@string/current_device" />

            <TextView
                android:id="@+id/currentDevice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/currentDeviceLabel"
                android:text="" />

            <TextView
                android:id="@+id/latestTabsLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/currentDevice"
                style="?android:attr/listSeparatorTextViewStyle"
                android:text="@string/latest_tabs" />

            <TextView
                android:id="@+id/latestTabs"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/latestTabsLabel"
                android:text="" />

            <TextView
                android:id="@+id/devicesLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="start"
                android:layout_below="@id/latestTabs"
                style="?android:attr/listSeparatorTextViewStyle"
                android:text="@string/devices" />

            <androidx.fragment.app.FragmentContainerView android:name="org.mozilla.samples.sync.DeviceFragment"
                android:id="@+id/devices_fragment"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/devicesLabel" />
        </RelativeLayout>
    </ScrollView>

</RelativeLayout>
