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-06-29 02:03:04 +02:00
|
|
|
android:layout_height="40dp"
|
2019-05-29 22:30:34 +02:00
|
|
|
android:layout_margin="8dp"
|
2019-04-18 18:26:03 +02:00
|
|
|
android:background="@drawable/search_url_background"
|
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
|
|
|
<ImageView
|
|
|
|
android:id="@+id/search_engine_icon"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2019-05-28 19:53:35 +02:00
|
|
|
android:layout_margin="12dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-03-25 22:13:22 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-05-28 19:53:35 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
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-03-25 22:13:22 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/search_engine_icon"
|
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-03-29 21:49:50 +01:00
|
|
|
<TextView
|
2019-05-28 19:53:35 +02:00
|
|
|
android:id="@+id/search_with_shortcuts"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
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"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar_wrapper" />
|
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"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/pill_wrapper"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
2019-01-28 20:54:43 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/pill_wrapper"
|
|
|
|
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-02-08 18:43:17 +01:00
|
|
|
android:id="@+id/search_scan_button"
|
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-01-28 21:00:11 +01:00
|
|
|
|
2019-04-05 00:11:51 +02:00
|
|
|
<ToggleButton
|
2019-02-08 18:43:17 +01:00
|
|
|
android:id="@+id/search_shortcuts_button"
|
2019-04-05 00:11:51 +02:00
|
|
|
style="@style/search_pill"
|
2019-03-29 21:49:50 +01:00
|
|
|
android:drawableStart="@drawable/ic_search"
|
2019-04-05 00:11:51 +02:00
|
|
|
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>
|