gogerald | 3c28b2a | 2019-08-15 21:27:05 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Avi Drissman | ae7b33a4 | 2022-09-13 16:51:07 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright 2019 The Chromium Authors |
| 4 | Use of this source code is governed by a BSD-style license that can be |
| 5 | found in the LICENSE file. |
| 6 | --> |
gogerald | 3c28b2a | 2019-08-15 21:27:05 | [diff] [blame] | 7 | |
Xi Han | 404531e6 | 2022-04-28 19:14:48 | [diff] [blame] | 8 | <org.chromium.chrome.features.tasks.TasksView |
gogerald | 3c28b2a | 2019-08-15 21:27:05 | [diff] [blame] | 9 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 10 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 11 | xmlns:tools="http://schemas.android.com/tools" |
| 12 | android:layout_width="match_parent" |
Hao Dong | 6a44815 | 2022-09-27 16:24:27 | [diff] [blame] | 13 | android:layout_height="match_parent"> |
gogerald | f0445b0 | 2019-10-04 19:04:18 | [diff] [blame] | 14 | |
Ben Joyce | 32c9435 | 2020-02-24 17:33:31 | [diff] [blame] | 15 | <com.google.android.material.appbar.AppBarLayout |
Mia Glaese | 6b36271 | 2019-10-21 21:38:21 | [diff] [blame] | 16 | android:id="@+id/task_surface_header" |
Matt Simmons | 5ac41b1 | 2019-09-16 23:51:56 | [diff] [blame] | 17 | android:layout_width="match_parent" |
| 18 | android:layout_height="wrap_content" |
Mia Glaese | 6b36271 | 2019-10-21 21:38:21 | [diff] [blame] | 19 | app:elevation="0dp"> |
Yue Zhang | b18b937 | 2020-06-25 23:38:38 | [diff] [blame] | 20 | <LinearLayout |
spdonghao | 893e243 | 2020-10-01 21:47:23 | [diff] [blame] | 21 | android:id="@+id/top_toolbar_placeholder" |
| 22 | android:layout_width="match_parent" |
spdonghao | d0ddd60 | 2022-02-16 01:10:58 | [diff] [blame] | 23 | android:layout_height="wrap_content" |
spdonghao | 893e243 | 2020-10-01 21:47:23 | [diff] [blame] | 24 | android:background="@android:color/transparent" |
| 25 | android:orientation="vertical" |
spdonghao | 633fc0e | 2021-02-27 00:45:51 | [diff] [blame] | 26 | app:layout_scrollFlags="scroll|snap"> |
spdonghao | 893e243 | 2020-10-01 21:47:23 | [diff] [blame] | 27 | </LinearLayout> |
| 28 | <LinearLayout |
spdonghao | 1900d097 | 2022-09-27 20:04:59 | [diff] [blame] | 29 | android:id="@+id/logo_container" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:orientation="vertical" |
| 33 | android:visibility="gone" |
spdonghao | bb6ee629d | 2022-09-28 22:37:18 | [diff] [blame] | 34 | app:layout_scrollFlags="scroll|snap"> |
spdonghao | 1900d097 | 2022-09-27 20:04:59 | [diff] [blame] | 35 | <include layout="@layout/logo_view_layout" /> |
| 36 | </LinearLayout> |
| 37 | <LinearLayout |
spdonghao | 454214b | 2021-04-13 14:50:07 | [diff] [blame] | 38 | android:id="@+id/fake_search_box" |
Yue Zhang | b18b937 | 2020-06-25 23:38:38 | [diff] [blame] | 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
spdonghao | 454214b | 2021-04-13 14:50:07 | [diff] [blame] | 41 | android:orientation="vertical" |
| 42 | app:layout_scrollFlags="scroll"> |
Xi Han | 52e8d6e | 2022-01-27 18:07:50 | [diff] [blame] | 43 | <include layout="@layout/tasks_surface_search_box_layout"/> |
Yue Zhang | b18b937 | 2020-06-25 23:38:38 | [diff] [blame] | 44 | </LinearLayout> |
Min Qin | 1d56963 | 2021-12-14 21:09:44 | [diff] [blame] | 45 | <FrameLayout android:id="@+id/query_tiles_container" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:paddingTop="6dp" |
| 49 | android:paddingStart="6dp" |
| 50 | android:paddingEnd="6dp" |
| 51 | android:visibility="gone" |
| 52 | app:layout_scrollFlags="scroll"> |
| 53 | <include layout="@layout/query_tiles_layout" /> |
| 54 | </FrameLayout> |
Xinyi Ji | 46e77ff | 2023-08-01 15:15:45 | [diff] [blame] | 55 | <include layout="@layout/mv_tiles_container" /> |
Mia Glaese | 6b36271 | 2019-10-21 21:38:21 | [diff] [blame] | 56 | <!-- TODO(crbug.com/982018): Make view stub to inflate only when needed. --> |
Xinyi Ji | d821fb40 | 2023-03-29 20:04:08 | [diff] [blame] | 57 | <include layout="@layout/tab_switcher_module_container" /> |
Ben Joyce | 32c9435 | 2020-02-24 17:33:31 | [diff] [blame] | 58 | </com.google.android.material.appbar.AppBarLayout> |
gogerald | 9ac0ba48 | 2020-06-19 19:16:07 | [diff] [blame] | 59 | |
| 60 | <!-- This incognito_description_container_layout_stub and the below tasks_surface_body |
| 61 | should be mutually exclusive, otherwise they will overlap each other. --> |
| 62 | <ViewStub |
| 63 | android:id="@+id/incognito_description_container_layout_stub" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="match_parent" |
| 66 | android:layout="@layout/incognito_description_container_layout" |
| 67 | app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
| 68 | |
| 69 | <!-- Note that this FrameLayout can not be added to NestedScrollView, otherwise the |
| 70 | RecyclerView added to this FrameLayout won't recycle. --> |
gogerald | 3c28b2a | 2019-08-15 21:27:05 | [diff] [blame] | 71 | <FrameLayout |
Mia Glaese | 6b36271 | 2019-10-21 21:38:21 | [diff] [blame] | 72 | android:id="@+id/tasks_surface_body" |
gogerald | 3c28b2a | 2019-08-15 21:27:05 | [diff] [blame] | 73 | android:layout_width="match_parent" |
Hao Dong | 6a44815 | 2022-09-27 16:24:27 | [diff] [blame] | 74 | android:layout_height="match_parent" |
gogerald | 9ac0ba48 | 2020-06-19 19:16:07 | [diff] [blame] | 75 | app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
Xi Han | 404531e6 | 2022-04-28 19:14:48 | [diff] [blame] | 76 | </org.chromium.chrome.features.tasks.TasksView> |