fragment_browser.xml (3516B)
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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 xmlns:app="http://schemas.android.com/apk/res-auto" 9 xmlns:tools="http://schemas.android.com/tools"> 10 11 <LinearLayout 12 android:id="@+id/browser_container" 13 android:layout_width="match_parent" 14 android:layout_height="match_parent" 15 android:orientation="vertical"> 16 17 <org.mozilla.focus.browser.BrowserCoordinatorLayout 18 android:layout_marginTop="0dp" 19 android:id="@+id/main_content" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:background="@drawable/background_gradient" 23 android:orientation="vertical" 24 android:clipChildren="false"> 25 26 <mozilla.components.concept.engine.EngineView 27 tools:ignore="Instantiatable" 28 android:id="@+id/engineView" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:focusable="true" 32 android:focusableInTouchMode="true" 33 android:scrollbarThumbVertical="@drawable/scrollbar_thumb" /> 34 35 <FrameLayout 36 android:id="@+id/crash_container" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:background="@color/destructive" 40 android:visibility="gone"/> 41 42 <mozilla.components.browser.toolbar.BrowserToolbar 43 android:id="@+id/browserToolbar" 44 android:layout_width="match_parent" 45 android:layout_height="@dimen/browser_toolbar_height" 46 android:layout_gravity="top" 47 android:clickable="true" 48 android:elevation="4dp" 49 android:focusable="true" 50 android:focusableInTouchMode="true" /> 51 52 <mozilla.components.feature.findinpage.view.FindInPageBar 53 android:id="@+id/find_in_page" 54 android:layout_width="match_parent" 55 android:elevation="10dp" 56 android:layout_height="56dp" 57 android:padding="4dp" 58 android:background="@color/colorPrimary" 59 app:findInPageQueryHintTextColor="@color/secondaryText" 60 app:findInPageNoMatchesTextColor="@color/error" 61 app:findInPageButtonsTint="@color/primaryText" 62 app:findInPageResultCountTextColor="@color/primaryText" 63 android:visibility="gone" /> 64 65 </org.mozilla.focus.browser.BrowserCoordinatorLayout> 66 </LinearLayout> 67 68 <FrameLayout 69 android:id="@+id/popup_tint" 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:alpha=".5" 73 android:background="@color/colorPrimary" 74 android:visibility="gone" /> 75 76 <FrameLayout 77 android:id="@+id/video_container" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:background="@color/colorPrimary" 81 android:visibility="gone" /> 82 </FrameLayout>