2019-01-15 02:42:58 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:id="@+id/search_layout"
|
2019-01-15 02:42:58 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-06-29 02:03:04 +02:00
|
|
|
android:background="?foundation"
|
2019-05-28 19:53:35 +02:00
|
|
|
tools:context=".search.SearchFragment">
|
2019-01-15 02:42:58 +01:00
|
|
|
|
2019-01-29 20:20:29 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-01-15 02:42:58 +01:00
|
|
|
android:id="@+id/toolbar_wrapper"
|
|
|
|
android:layout_width="0dp"
|
2019-10-15 17:54:04 +02:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:layout_margin="0dp"
|
2019-01-15 02:42:58 +01:00
|
|
|
android:outlineProvider="paddedBounds"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:transitionName="toolbar_wrapper_transition"
|
2019-01-15 02:42:58 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-03-25 22:13:22 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2019-05-28 19:53:35 +02:00
|
|
|
|
2019-03-25 22:13:22 +01:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/toolbar_component_wrapper"
|
|
|
|
android:layout_width="0dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:layout_height="0dp"
|
2019-03-25 22:13:22 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-28 19:53:35 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-10-15 17:54:04 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-05-28 19:53:35 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-03-29 21:49:50 +01:00
|
|
|
|
2019-03-25 22:13:22 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-01-15 02:42:58 +01:00
|
|
|
|
2019-09-16 17:58:19 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/fill_link_from_clipboard"
|
2019-10-21 19:01:51 +02:00
|
|
|
android:layout_width="0dp"
|
2019-09-16 17:58:19 +02:00
|
|
|
android:layout_height="56dp"
|
2019-09-21 00:29:16 +02:00
|
|
|
android:layout_marginTop="8dp"
|
2019-10-21 19:01:51 +02:00
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2019-09-16 17:58:19 +02:00
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/toolbar_wrapper"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar_wrapper"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/toolbar_wrapper">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/link_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:tint="?primaryText"
|
|
|
|
android:src="@drawable/ic_link"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/clipboard_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textColor="?primaryText"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/clipboard_url"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/link_icon"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
android:text="@string/awesomebar_clipboard_title"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/clipboard_url"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-01 21:50:39 +02:00
|
|
|
android:textColor="?fillLinkFromClipboard"
|
2019-09-16 17:58:19 +02:00
|
|
|
android:textAppearance="@style/Subtitle12TextStyle"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/clipboard_title"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/clipboard_title"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2019-09-21 00:29:16 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/divider_line"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1.5dp"
|
|
|
|
android:background="?neutralFaded"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/fill_link_from_clipboard"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/fill_link_from_clipboard"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/fill_link_from_clipboard" />
|
|
|
|
|
2019-03-29 21:49:50 +01:00
|
|
|
<TextView
|
2019-09-16 17:58:19 +02:00
|
|
|
android:id="@+id/search_with_shortcuts"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-21 00:29:16 +02:00
|
|
|
android:layout_marginTop="18dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:fontFamily="Inter UI"
|
|
|
|
android:letterSpacing="0.15"
|
|
|
|
android:text="@string/search_shortcuts_search_with"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textColor="?secondaryText"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/toolbar_wrapper"
|
2019-09-16 17:58:19 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/fill_link_from_clipboard" />
|
2019-03-29 21:49:50 +01:00
|
|
|
|
2019-06-04 17:35:47 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/search_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?neutralFaded"
|
2019-08-03 10:14:35 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/pillWrapper"
|
2019-06-04 17:35:47 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
2019-01-28 20:54:43 +01:00
|
|
|
<LinearLayout
|
2019-08-03 10:14:35 +02:00
|
|
|
android:id="@+id/pillWrapper"
|
2019-01-28 20:54:43 +01:00
|
|
|
android:layout_width="0dp"
|
2019-06-27 00:54:16 +02:00
|
|
|
android:layout_height="40dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:background="?foundation"
|
2019-01-28 20:54:43 +01:00
|
|
|
android:orientation="horizontal"
|
2019-05-09 21:47:54 +02:00
|
|
|
android:paddingStart="20dp"
|
2019-01-28 20:54:43 +01:00
|
|
|
android:paddingTop="4dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:paddingEnd="16dp"
|
2019-01-28 20:54:43 +01:00
|
|
|
android:paddingBottom="4dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-01-28 20:54:43 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-28 19:53:35 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
2019-01-28 20:54:43 +01:00
|
|
|
|
2019-04-05 00:11:51 +02:00
|
|
|
<ToggleButton
|
2019-08-03 10:14:35 +02:00
|
|
|
android:id="@+id/searchScanButton"
|
2019-04-05 00:11:51 +02:00
|
|
|
style="@style/search_pill"
|
2019-02-08 18:43:17 +01:00
|
|
|
android:layout_marginEnd="8dp"
|
2019-04-05 00:11:51 +02:00
|
|
|
android:drawableStart="@drawable/ic_qr"
|
|
|
|
android:textOff="@string/search_scan_button"
|
|
|
|
android:textOn="@string/search_scan_button" />
|
2019-10-18 13:48:58 +02:00
|
|
|
|
|
|
|
<ToggleButton
|
|
|
|
android:id="@+id/searchShortcutsButton"
|
|
|
|
style="@style/search_pill"
|
|
|
|
android:drawableStart="@drawable/ic_search"
|
|
|
|
android:textOff="@string/search_shortcuts_button"
|
|
|
|
android:textOn="@string/search_shortcuts_button" />
|
2019-01-28 20:54:43 +01:00
|
|
|
</LinearLayout>
|
2019-01-15 02:42:58 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|