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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent">

    <ViewStub android:id="@+id/suggestions_opt_in_prompt"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout="@layout/home_suggestion_prompt" />

    <view class="org.mozilla.gecko.home.BrowserSearch$HomeSearchListView"
            android:id="@+id/home_list_view"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1" />

    <!-- The window background is set to our desired color, #fff, so
         reduce overdraw by not drawing the background.

         Note: this needs to be transparent and not null because we
         draw a divider in onDraw. -->
    <view class="org.mozilla.gecko.home.SearchEngineBar$SearchEngineBarContainer"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@android:color/transparent">

        <!-- We add a marginTop so the outer container can draw a divider.

             listSelector is too slow for showing pressed state
             so we set the pressed colors on the child. -->
        <org.mozilla.gecko.home.SearchEngineBar
              android:id="@+id/search_engine_bar"
              android:layout_width="wrap_content"
              android:layout_height="48dp"
              android:layout_marginTop="1dp"
              android:orientation="horizontal"
              android:layout_gravity="center_horizontal"
              android:choiceMode="singleChoice"
              android:listSelector="@android:color/transparent"
              android:cacheColorHint="@android:color/transparent"/>

   </view>

</LinearLayout>
