fragment_browser.xml (5324B)
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"> 11 12 <androidx.constraintlayout.widget.ConstraintLayout 13 android:id="@+id/browserWindow" 14 android:layout_width="match_parent" 15 android:layout_height="match_parent"> 16 17 <androidx.coordinatorlayout.widget.CoordinatorLayout 18 android:id="@+id/browserLayout" 19 android:layout_width="match_parent" 20 android:layout_height="0dp" 21 app:layout_constraintHeight_min="1dp" 22 app:layout_constraintBottom_toBottomOf="parent" 23 app:layout_constraintTop_toTopOf="parent" 24 tools:context="browser.BrowserFragment"> 25 26 <mozilla.components.ui.widgets.VerticalSwipeRefreshLayout 27 android:id="@+id/swipeRefresh" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent"> 30 31 <mozilla.components.concept.engine.EngineView 32 tools:ignore="Instantiatable" 33 android:id="@+id/engineView" 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:visibility="gone" /> 37 </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout> 38 39 <ViewStub 40 android:id="@+id/findInPageViewStub" 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:layout_gravity="bottom" 44 android:inflatedId="@+id/findInPageView" 45 android:layout="@layout/component_find_in_page_bar" /> 46 47 <mozilla.components.feature.readerview.view.ReaderViewControlsBar 48 android:id="@+id/readerViewControlsBar" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_gravity="bottom" 52 android:background="?attr/colorSurface" 53 android:elevation="24dp" 54 android:visibility="gone" /> 55 56 <ViewStub 57 android:id="@+id/crashReporterViewStub" 58 android:inflatedId="@+id/crash_reporter_view" 59 android:layout="@layout/browser_layout_crash_reporter" 60 android:layout_width="match_parent" 61 android:layout_height="match_parent" /> 62 63 <androidx.constraintlayout.widget.ConstraintLayout 64 android:id="@+id/dynamicSnackbarContainer" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_gravity="bottom" 68 android:elevation="@dimen/browser_fragment_toolbar_elevation" 69 tools:ignore="MozMultipleConstraintLayouts" /> 70 71 <ViewStub 72 android:id="@+id/loginSelectBarStub" 73 android:inflatedId="@+id/loginSelectBar" 74 android:layout="@layout/login_select_bar" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" /> 77 78 <ViewStub 79 android:id="@+id/suggestStrongPasswordBarStub" 80 android:inflatedId="@+id/suggestStrongPasswordBar" 81 android:layout="@layout/suggest_strong_password_bar" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" /> 84 85 <ViewStub 86 android:id="@+id/addressSelectBarStub" 87 android:inflatedId="@+id/addressSelectBar" 88 android:layout="@layout/address_select_bar" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" /> 91 92 <ViewStub 93 android:id="@+id/creditCardSelectBarStub" 94 android:inflatedId="@+id/creditCardSelectBar" 95 android:layout="@layout/creditcard_select_bar" 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" /> 98 99 <ViewStub 100 android:id="@+id/translationsBannerStub" 101 android:inflatedId="@+id/translationsBanner" 102 android:layout="@layout/translations_banner" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" /> 105 106 </androidx.coordinatorlayout.widget.CoordinatorLayout> 107 108 </androidx.constraintlayout.widget.ConstraintLayout> 109 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>