<?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/. -->

<merge xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:gecko="http://schemas.android.com/apk/res-auto">

    <ScrollView android:layout_width="match_parent"
                android:layout_height="match_parent">

        <LinearLayout android:id="@+id/private_tabs_empty"
                      style="@style/TabsPanelFrame.PrivateTabs"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent">

            <LinearLayout style="@style/TabsPanelSection.PrivateTabs.Header"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content">

                <TextView style="@style/TabsPanelItem.TextAppearance.Header.PrivateTabs"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:text="@string/private_browsing_title"/>

                <TextView style="@style/TabsPanelItem.TextAppearance"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:text="@string/private_tabs_panel_empty_desc"/>

            </LinearLayout>

            <LinearLayout style="@style/TabsPanelSection.PrivateTabs"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent">

                <TextView android:id="@+id/private_tabs_learn_more"
                          style="@style/TabsPanelItem.TextAppearance.Linkified.LearnMore"
                          android:layout_width="match_parent"
                          android:text="@string/private_tabs_panel_learn_more"/>

            </LinearLayout>

        </LinearLayout>

    </ScrollView>

    <!-- Note: for an unknown reason, scrolling in the TabsTray
         does not work unless it is laid out after the empty view. -->
    <org.mozilla.gecko.tabspanel.TabsTray android:id="@+id/private_tabs_tray"
                                          style="@style/TabsList"
                                          android:layout_width="match_parent"
                                          android:layout_height="match_parent"
                                          android:choiceMode="singleChoice"
                                          gecko:tabs="tabs_private"/>

</merge>
