tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fragment_browser.xml (3485B)


      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 
      6 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      7    xmlns:app="http://schemas.android.com/apk/res-auto"
      8    xmlns:tools="http://schemas.android.com/tools"
      9    android:layout_width="match_parent"
     10    android:layout_height="match_parent"
     11    tools:context=".BrowserActivity">
     12 
     13    <com.google.android.material.appbar.AppBarLayout
     14        android:layout_width="match_parent"
     15        android:layout_height="wrap_content">
     16 
     17        <mozilla.components.browser.toolbar.BrowserToolbar
     18            android:id="@+id/toolbar"
     19            android:layout_width="match_parent"
     20            android:layout_height="56dp"
     21            android:background="#aaaaaa" />
     22 
     23        <mozilla.components.feature.findinpage.view.FindInPageBar
     24            android:id="@+id/findInPage"
     25            android:layout_width="match_parent"
     26            android:layout_height="56dp"
     27            android:background="#FFFFFFFF"
     28            android:elevation="10dp"
     29            android:padding="4dp"
     30            android:visibility="gone"
     31            app:findInPageNoMatchesTextColor="@color/photonRed50" />
     32 
     33    </com.google.android.material.appbar.AppBarLayout>
     34 
     35    <FrameLayout
     36        android:layout_width="match_parent"
     37        android:layout_height="match_parent"
     38        app:layout_behavior="@string/appbar_scrolling_view_behavior">
     39 
     40        <mozilla.components.ui.widgets.VerticalSwipeRefreshLayout
     41            android:id="@+id/swipeToRefresh"
     42            android:layout_width="match_parent"
     43            android:layout_height="match_parent">
     44            <mozilla.components.concept.engine.EngineView
     45                tools:ignore="Instantiatable"
     46                android:id="@+id/engineView"
     47                android:layout_width="match_parent"
     48                android:layout_height="match_parent" />
     49        </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout>
     50 
     51        <org.mozilla.samples.browser.awesomebar.AwesomeBarWrapper
     52            android:id="@+id/awesomeBar"
     53            android:layout_width="match_parent"
     54            android:layout_height="wrap_content"
     55            android:padding="4dp"
     56            android:visibility="gone" />
     57 
     58        <mozilla.components.feature.readerview.view.ReaderViewControlsBar
     59            android:id="@+id/readerViewBar"
     60            android:layout_width="match_parent"
     61            android:layout_height="wrap_content"
     62            android:layout_gravity="bottom"
     63            android:background="#FFFFFFFF"
     64            android:elevation="10dp"
     65            android:paddingBottom="55dp"
     66            android:visibility="gone" />
     67 
     68        <com.google.android.material.floatingactionbutton.FloatingActionButton
     69            android:id="@+id/readerViewAppearanceButton"
     70            android:layout_width="wrap_content"
     71            android:layout_height="wrap_content"
     72            android:layout_gravity="end|bottom"
     73            android:layout_marginLeft="16dp"
     74            android:layout_marginRight="16dp"
     75            android:layout_marginBottom="72dp"
     76            android:src="@drawable/mozac_ic_font"
     77            android:visibility="gone"
     78            tools:ignore="ContentDescription" />
     79 
     80    </FrameLayout>
     81 
     82 </androidx.coordinatorlayout.widget.CoordinatorLayout>