[fenix] Bug 1812518 - Control the snackbar positioning from Fenix
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_browser.xml
bloba8b3b29a00cb6055f8bf7aa96f435e016f4b6d42
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <org.mozilla.fenix.browser.SwipeGestureLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:id="@+id/gestureLayout"
9     android:layout_width="match_parent"
10     android:layout_height="match_parent">
12     <androidx.constraintlayout.widget.ConstraintLayout
13         android:id="@+id/browserWindow"
14         android:layout_width="match_parent"
15         android:layout_height="match_parent">
17         <androidx.coordinatorlayout.widget.CoordinatorLayout
18             android:id="@+id/browserLayout"
19             android:layout_width="match_parent"
20             android:layout_height="0dp"
21             app:layout_constraintBottom_toTopOf="@+id/addressSelectBar"
22             app:layout_constraintTop_toTopOf="parent"
23             tools:context="browser.BrowserFragment">
25             <mozilla.components.ui.widgets.VerticalSwipeRefreshLayout
26                 android:id="@+id/swipeRefresh"
27                 android:layout_width="match_parent"
28                 android:layout_height="match_parent">
30                 <mozilla.components.concept.engine.EngineView
31                     tools:ignore="Instantiatable"
32                     android:id="@+id/engineView"
33                     android:layout_width="match_parent"
34                     android:layout_height="match_parent"
35                     android:visibility="gone" />
36             </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout>
38             <ViewStub
39                 android:id="@+id/stubFindInPage"
40                 android:layout_width="match_parent"
41                 android:layout_height="56dp"
42                 android:layout_gravity="bottom"
43                 android:inflatedId="@+id/findInPageView"
44                 android:layout="@layout/stub_find_in_page" />
46             <include
47                 android:id="@+id/viewDynamicDownloadDialog"
48                 layout="@layout/download_dialog_layout"
49                 android:layout_width="match_parent"
50                 android:layout_height="wrap_content"
51                 android:layout_gravity="bottom"
52                 android:visibility="gone" />
54             <mozilla.components.feature.readerview.view.ReaderViewControlsBar
55                 android:id="@+id/readerViewControlsBar"
56                 android:layout_width="match_parent"
57                 android:layout_height="wrap_content"
58                 android:layout_gravity="bottom"
59                 android:background="?attr/layer1"
60                 android:elevation="24dp"
61                 android:visibility="gone" />
63             <org.mozilla.fenix.crashes.CrashContentView
64                 android:id="@+id/crash_reporter_view"
65                 android:layout_width="match_parent"
66                 android:layout_height="match_parent"
67                 android:visibility="gone" />
69             <FrameLayout
70                 android:id="@+id/dynamicSnackbarContainer"
71                 android:layout_width="match_parent"
72                 android:layout_height="wrap_content"/>
74         </androidx.coordinatorlayout.widget.CoordinatorLayout>
76         <mozilla.components.feature.prompts.address.AddressSelectBar
77             android:visibility="gone"
78             android:id="@+id/addressSelectBar"
79             android:layout_width="match_parent"
80             android:layout_height="wrap_content"
81             app:layout_constraintBottom_toTopOf="@id/creditCardSelectBar"
82             app:layout_constraintTop_toBottomOf="@id/browserLayout" />
84         <mozilla.components.feature.prompts.creditcard.CreditCardSelectBar
85             android:visibility="gone"
86             android:id="@+id/creditCardSelectBar"
87             android:layout_width="match_parent"
88             android:layout_height="wrap_content"
89             app:layout_constraintBottom_toTopOf="@id/loginSelectBar"
90             app:layout_constraintTop_toBottomOf="@id/addressSelectBar" />
92         <mozilla.components.feature.prompts.login.LoginSelectBar
93             android:visibility="gone"
94             android:id="@+id/loginSelectBar"
95             android:layout_width="match_parent"
96             android:layout_height="wrap_content"
97             app:layout_constraintBottom_toBottomOf="parent"
98             app:layout_constraintTop_toBottomOf="@id/creditCardSelectBar" />
99     </androidx.constraintlayout.widget.ConstraintLayout>
101     <org.mozilla.fenix.browser.TabPreview
102         android:id="@+id/tabPreview"
103         android:layout_width="match_parent"
104         android:layout_height="match_parent"
105         android:clickable="false"
106         android:focusable="false"
107         android:visibility="gone" />
108 </org.mozilla.fenix.browser.SwipeGestureLayout>