<?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">

    <RelativeLayout android:id="@+id/tabs_panel_header"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/browser_toolbar_height">

        <view class="org.mozilla.gecko.tabs.TabsPanel$TabsPanelToolbar"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@color/background_tabs">

            <include layout="@layout/tabs_panel_header"/>

        </view>

        <View android:layout_width="match_parent"
              android:layout_height="2dp"
              android:layout_alignParentBottom="true"
              android:background="#1A000000"/>

    </RelativeLayout>

    <view class="org.mozilla.gecko.tabs.TabsPanel$TabsListContainer"
          android:id="@+id/tabs_container"
          android:layout_width="match_parent"
          android:layout_height="0dip"
          android:layout_weight="1.0">

        <org.mozilla.gecko.tabs.TabsTray android:id="@+id/normal_tabs"
                                         style="@style/TabsList"
                                         android:layout_width="match_parent"
                                         android:layout_height="match_parent"
                                         android:choiceMode="singleChoice"
                                         android:visibility="gone"
                                         gecko:tabs="tabs_normal"/>

        <org.mozilla.gecko.tabs.PrivateTabsPanel
                android:id="@+id/private_tabs_panel"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:visibility="gone"/>

        <org.mozilla.gecko.tabs.RemoteTabsPanel
                android:id="@+id/remote_tabs"
                android:layout_height="match_parent"
                android:layout_width="match_parent"
                android:visibility="gone"/>

    </view>

    <RelativeLayout android:id="@+id/tabs_panel_footer"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/browser_toolbar_height">

        <view class="org.mozilla.gecko.tabs.TabsPanel$TabsPanelToolbar"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@color/background_tabs">

            <include layout="@layout/tabs_panel_footer"/>

        </view>

        <View android:layout_width="match_parent"
              android:layout_height="2dp"
              android:layout_alignParentTop="true"
              android:background="#1A000000"/>

    </RelativeLayout>

</merge>
