tor-browser

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

fragment_urlinput.xml (4484B)


      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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      7    xmlns:app="http://schemas.android.com/apk/res-auto"
      8    android:id="@+id/backgroundView"
      9    android:layout_width="match_parent"
     10    android:layout_height="match_parent">
     11 
     12    <androidx.constraintlayout.widget.ConstraintLayout
     13        android:id="@+id/landingLayout"
     14        android:layout_width="match_parent"
     15        android:layout_height="match_parent"
     16        android:layout_marginTop="@dimen/urlinput_height">
     17 
     18        <androidx.compose.ui.platform.ComposeView
     19            android:id="@+id/topSites"
     20            android:layout_width="match_parent"
     21            android:layout_height="wrap_content"
     22            app:layout_constraintStart_toStartOf="parent"
     23            app:layout_constraintTop_toTopOf="parent" />
     24 
     25        <androidx.appcompat.widget.AppCompatImageView
     26            android:id="@+id/logo"
     27            android:layout_width="match_parent"
     28            android:layout_height="0dp"
     29            android:contentDescription="@string/app_name"
     30            android:focusable="false"
     31            android:paddingStart="24dp"
     32            android:paddingEnd="24dp"
     33            android:scaleType="centerInside"
     34            app:srcCompat="@drawable/wordmark2"
     35            app:layout_constraintEnd_toEndOf="parent"
     36            app:layout_constraintBottom_toBottomOf="parent"
     37            app:layout_constraintStart_toStartOf="parent"
     38            app:layout_constraintTop_toBottomOf="@id/topSites" />
     39 
     40    </androidx.constraintlayout.widget.ConstraintLayout>
     41 
     42    <FrameLayout
     43        android:id="@+id/urlInputLayout"
     44        android:layout_width="match_parent"
     45        android:layout_height="@dimen/urlinput_height"
     46        android:clickable="true"
     47        android:clipChildren="false"
     48        android:elevation="4dp"
     49        android:focusable="true"
     50        android:orientation="horizontal">
     51 
     52        <View
     53            android:id="@+id/toolbarBackgroundView"
     54            android:layout_width="match_parent"
     55            android:layout_height="match_parent"
     56            android:background="@drawable/background_gradient" />
     57 
     58        <View
     59            android:id="@+id/toolbarBottomBorder"
     60            android:layout_width="match_parent"
     61            android:layout_height="1dp"
     62            android:layout_gravity="bottom"
     63            android:alpha="0.20"
     64            android:background="@color/divider" />
     65 
     66        <FrameLayout
     67            android:id="@+id/urlInputContainerView"
     68            android:layout_width="match_parent"
     69            android:layout_height="56dp"
     70            android:layout_gravity="bottom"
     71            android:layout_margin="0dp"
     72            android:clipChildren="false">
     73 
     74            <View
     75                android:id="@+id/urlInputBackgroundView"
     76                android:layout_width="match_parent"
     77                android:layout_height="match_parent"
     78                android:visibility="visible" />
     79 
     80            <LinearLayout
     81                android:layout_width="match_parent"
     82                android:layout_height="match_parent"
     83                android:background="@drawable/background_gradient"
     84                android:orientation="horizontal">
     85 
     86                <mozilla.components.browser.toolbar.BrowserToolbar
     87                    android:id="@+id/browserToolbar"
     88                    android:layout_width="0dp"
     89                    android:layout_height="56dp"
     90                    android:layout_weight="1" />
     91 
     92                <mozilla.components.browser.menu.view.MenuButton
     93                    android:id="@+id/menuView"
     94                    android:layout_width="40dp"
     95                    android:layout_height="56dp" />
     96 
     97            </LinearLayout>
     98 
     99        </FrameLayout>
    100 
    101    </FrameLayout>
    102 
    103    <View
    104        android:id="@+id/dismissView"
    105        android:layout_width="match_parent"
    106        android:layout_height="match_parent"
    107        android:background="@color/colorOverlay"
    108        android:contentDescription="@string/content_description_dismiss_input" />
    109 
    110    <FrameLayout
    111        android:id="@+id/searchViewContainer"
    112        android:layout_width="match_parent"
    113        android:layout_height="wrap_content"
    114        android:layout_marginTop="@dimen/urlinput_height"
    115        android:visibility="gone" />
    116 
    117 </FrameLayout>