Bug 1813877 - Announce page title with talkback when swiping on navbar
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_browser.xml
bloba2d58244f3027efd77a985693cccae5822c84dd1
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:accessibilityLiveRegion="polite"
36                     android:visibility="gone" />
37             </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout>
39             <ViewStub
40                 android:id="@+id/stubFindInPage"
41                 android:layout_width="match_parent"
42                 android:layout_height="56dp"
43                 android:layout_gravity="bottom"
44                 android:inflatedId="@+id/findInPageView"
45                 android:layout="@layout/stub_find_in_page" />
47             <include
48                 android:id="@+id/viewDynamicDownloadDialog"
49                 layout="@layout/download_dialog_layout"
50                 android:layout_width="match_parent"
51                 android:layout_height="wrap_content"
52                 android:layout_gravity="bottom"
53                 android:visibility="gone" />
55             <mozilla.components.feature.readerview.view.ReaderViewControlsBar
56                 android:id="@+id/readerViewControlsBar"
57                 android:layout_width="match_parent"
58                 android:layout_height="wrap_content"
59                 android:layout_gravity="bottom"
60                 android:background="?attr/layer1"
61                 android:elevation="24dp"
62                 android:visibility="gone" />
64             <org.mozilla.fenix.crashes.CrashContentView
65                 android:id="@+id/crash_reporter_view"
66                 android:layout_width="match_parent"
67                 android:layout_height="match_parent"
68                 android:visibility="gone" />
70             <FrameLayout
71                 android:id="@+id/startDownloadDialogContainer"
72                 android:layout_width="match_parent"
73                 android:layout_height="wrap_content"
74                 android:layout_gravity="bottom"
75                 android:visibility="gone"
76                 android:elevation="@dimen/browser_fragment_toolbar_elevation"/>
78             <FrameLayout
79                 android:id="@+id/dynamicSnackbarContainer"
80                 android:layout_width="match_parent"
81                 android:layout_height="wrap_content"
82                 android:elevation="@dimen/browser_fragment_toolbar_elevation"/>
84         </androidx.coordinatorlayout.widget.CoordinatorLayout>
86         <mozilla.components.feature.prompts.address.AddressSelectBar
87             android:visibility="gone"
88             android:id="@+id/addressSelectBar"
89             android:layout_width="match_parent"
90             android:layout_height="wrap_content"
91             app:layout_constraintBottom_toTopOf="@id/creditCardSelectBar"
92             app:layout_constraintTop_toBottomOf="@id/browserLayout" />
94         <mozilla.components.feature.prompts.creditcard.CreditCardSelectBar
95             android:visibility="gone"
96             android:id="@+id/creditCardSelectBar"
97             android:layout_width="match_parent"
98             android:layout_height="wrap_content"
99             app:layout_constraintBottom_toTopOf="@id/loginSelectBar"
100             app:layout_constraintTop_toBottomOf="@id/addressSelectBar" />
102         <mozilla.components.feature.prompts.login.LoginSelectBar
103             android:visibility="gone"
104             android:id="@+id/loginSelectBar"
105             android:layout_width="match_parent"
106             android:layout_height="wrap_content"
107             app:layout_constraintBottom_toBottomOf="parent"
108             app:layout_constraintTop_toBottomOf="@id/creditCardSelectBar" />
109     </androidx.constraintlayout.widget.ConstraintLayout>
111     <org.mozilla.fenix.browser.TabPreview
112         android:id="@+id/tabPreview"
113         android:layout_width="match_parent"
114         android:layout_height="match_parent"
115         android:clickable="false"
116         android:focusable="false"
117         android:visibility="gone" />
118 </org.mozilla.fenix.browser.SwipeGestureLayout>