[fenix] Bug 1812518 - Show the download dialog as an Android View
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_browser.xml
bloba37f8d5a9fe77412b49de2f9dd51f5d21e594bc1
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/startDownloadDialogContainer"
71                 android:layout_width="match_parent"
72                 android:layout_height="wrap_content"
73                 android:layout_gravity="bottom"
74                 android:visibility="gone"
75                 android:elevation="@dimen/browser_fragment_toolbar_elevation"/>
77             <FrameLayout
78                 android:id="@+id/dynamicSnackbarContainer"
79                 android:layout_width="match_parent"
80                 android:layout_height="wrap_content"
81                 android:elevation="@dimen/browser_fragment_toolbar_elevation"/>
83         </androidx.coordinatorlayout.widget.CoordinatorLayout>
85         <mozilla.components.feature.prompts.address.AddressSelectBar
86             android:visibility="gone"
87             android:id="@+id/addressSelectBar"
88             android:layout_width="match_parent"
89             android:layout_height="wrap_content"
90             app:layout_constraintBottom_toTopOf="@id/creditCardSelectBar"
91             app:layout_constraintTop_toBottomOf="@id/browserLayout" />
93         <mozilla.components.feature.prompts.creditcard.CreditCardSelectBar
94             android:visibility="gone"
95             android:id="@+id/creditCardSelectBar"
96             android:layout_width="match_parent"
97             android:layout_height="wrap_content"
98             app:layout_constraintBottom_toTopOf="@id/loginSelectBar"
99             app:layout_constraintTop_toBottomOf="@id/addressSelectBar" />
101         <mozilla.components.feature.prompts.login.LoginSelectBar
102             android:visibility="gone"
103             android:id="@+id/loginSelectBar"
104             android:layout_width="match_parent"
105             android:layout_height="wrap_content"
106             app:layout_constraintBottom_toBottomOf="parent"
107             app:layout_constraintTop_toBottomOf="@id/creditCardSelectBar" />
108     </androidx.constraintlayout.widget.ConstraintLayout>
110     <org.mozilla.fenix.browser.TabPreview
111         android:id="@+id/tabPreview"
112         android:layout_width="match_parent"
113         android:layout_height="match_parent"
114         android:clickable="false"
115         android:focusable="false"
116         android:visibility="gone" />
117 </org.mozilla.fenix.browser.SwipeGestureLayout>