blob: 111333a133284f43d337047037e486199f70bf54 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<org.chromium.chrome.browser.ntp.NewTabPageLayout
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:id="@+id/ntp_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical"
android:gravity="center"
android:paddingTop="@dimen/toolbar_height_no_shadow"
android:visibility="gone" >
<!-- Search provider logo -->
<FrameLayout
android:id="@+id/logo_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/logo_view_layout"/>
</FrameLayout>
<!-- Search box -->
<include layout="@layout/fake_search_box_layout"/>
<ViewStub
android:id="@+id/composeplate_view_stub"
android:layout_width="match_parent"
android:layout_height="@dimen/composeplate_view_height"
android:layout_marginTop="@dimen/composeplate_view_margin_top_v1"
android:layout_marginStart="@dimen/mvt_container_lateral_margin"
android:layout_marginEnd="@dimen/mvt_container_lateral_margin"
android:layout="@layout/composeplate_view_layout"
/>
<ViewStub
android:id="@+id/composeplate_view_v2_stub"
android:layout_width="match_parent"
android:layout_height="@dimen/composeplate_view_height"
android:layout_marginTop="@dimen/composeplate_view_margin_top"
android:layout_marginStart="@dimen/mvt_container_lateral_margin"
android:layout_marginEnd="@dimen/mvt_container_lateral_margin"
android:layout="@layout/composeplate_view_layout_v2"
/>
<!-- Most Visited Tiles -->
<ViewStub
android:id="@+id/mv_tiles_layout_stub"
android:inflatedId="@+id/mv_tiles_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/mvt_container_top_margin"
android:layout_marginLeft="@dimen/mvt_container_lateral_margin"
android:layout_marginRight="@dimen/mvt_container_lateral_margin"
android:layout="@layout/mv_tiles_layout" />
<ViewStub
android:id="@+id/signin_promo_view_container_stub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout="@layout/signin_promo_view_new_tab_page" />
<ViewStub
android:id="@+id/home_modules_recycler_view_stub"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout="@layout/home_modules_recycler_view_layout"
/>
<!-- Single tab card -->
<ViewStub
android:id="@+id/tab_switcher_module_container_stub"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout="@layout/tab_switcher_module_container" />
<ViewStub
android:id="@+id/search_resumption_module_container_stub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/search_resumption_module_margin_top"
android:layout="@layout/search_resumption_module_layout" />
<!-- Spacer for when there is no search provider logo. -->
<View
android:id="@+id/no_search_logo_spacer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:visibility="gone" />
</org.chromium.chrome.browser.ntp.NewTabPageLayout>