61 lines
2.7 KiB
XML
61 lines
2.7 KiB
XML
<?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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".search.SearchFragment"
|
|
android:id="@+id/search_layout"
|
|
android:background="?attr/searchBackground">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/toolbar_wrapper"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="?attr/toolbarWrapperBackground"
|
|
android:outlineProvider="paddedBounds"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/pill_wrapper"
|
|
android:background="?attr/pillWrapperBackground"
|
|
android:elevation="10dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingTop="4dp"
|
|
android:paddingBottom="4dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<Button
|
|
style="@style/search_pill"
|
|
android:id="@+id/search_scan_button"
|
|
android:text="@string/search_scan_button"
|
|
android:drawableStart="@drawable/ic_qr"
|
|
android:layout_marginEnd="8dp"
|
|
android:textColor="?attr/searchShortcutsTextColor"
|
|
android:background="?attr/pillWrapperBackground"
|
|
android:drawableTint="?attr/searchShortcutsTextColor"/>
|
|
|
|
<Button
|
|
style="@style/search_pill"
|
|
android:id="@+id/search_shortcuts_button"
|
|
android:text="@string/search_shortcuts_button"
|
|
android:drawableStart="@drawable/ic_shortcuts"
|
|
android:textColor="?attr/searchShortcutsTextColor"
|
|
android:background="?attr/pillWrapperBackground"
|
|
android:drawableTint="?attr/searchShortcutsTextColor"/>
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |