Bug 1849073 - Part 1: Remove the Bookmark Search Dialog
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_create_shortcut.xml
blob9744a8c1a5c39d4d47ffb5974df0e2531c3128be
1 <?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
2    - License, v. 2.0. If a copy of the MPL was not distributed with this
3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:id="@+id/createShortcutWrapper"
9     android:layout_width="match_parent"
10     android:layout_height="match_parent"
11     android:background="?scrim"
12     android:fitsSystemWindows="true"
13     tools:context="org.mozilla.fenix.shortcut.CreateShortcutFragment">
15     <androidx.constraintlayout.widget.ConstraintLayout
16         android:layout_width="match_parent"
17         android:layout_height="wrap_content"
18         android:layout_gravity="center"
19         android:layout_marginStart="32dp"
20         android:layout_marginTop="16dp"
21         android:layout_marginEnd="32dp"
22         android:layout_marginBottom="16dp"
23         android:background="@drawable/dialog_background"
24         android:paddingTop="16dp"
25         android:paddingBottom="16dp">
27         <TextView
28             android:id="@+id/dialog_title"
29             android:layout_width="wrap_content"
30             android:layout_height="wrap_content"
31             android:paddingStart="32dp"
32             android:paddingEnd="32dp"
33             android:text="@string/add_to_homescreen_title"
34             android:textAlignment="viewStart"
35             android:textAppearance="@style/HeaderTextStyle"
36             android:textSize="20sp"
37             app:layout_constraintStart_toStartOf="parent"
38             app:layout_constraintTop_toTopOf="parent" />
40         <ImageView
41             android:id="@+id/favicon_image"
42             android:layout_width="32dp"
43             android:layout_height="32dp"
44             android:layout_marginStart="32dp"
45             android:layout_marginTop="32dp"
46             android:importantForAccessibility="no"
47             app:layout_constraintStart_toStartOf="parent"
48             app:layout_constraintTop_toBottomOf="@id/dialog_title"
49             tools:src="@drawable/ic_pocket" />
51         <EditText
52             android:id="@+id/shortcut_text"
53             android:layout_width="0dp"
54             android:layout_height="wrap_content"
55             android:layout_marginStart="8dp"
56             android:layout_marginEnd="32dp"
57             android:backgroundTint="?borderPrimary"
58             android:hint="@string/add_to_homescreen_text_placeholder"
59             android:importantForAutofill="no"
60             android:inputType="text"
61             android:textAlignment="viewStart"
62             app:layout_constraintBottom_toBottomOf="@id/favicon_image"
63             app:layout_constraintEnd_toEndOf="parent"
64             app:layout_constraintStart_toEndOf="@id/favicon_image"
65             app:layout_constraintTop_toTopOf="@id/favicon_image" />
67         <Button
68             android:id="@+id/add_button"
69             style="@style/CreateShortcutDialogButton"
70             android:layout_marginTop="32dp"
71             android:layout_marginEnd="16dp"
72             android:background="?selectableItemBackground"
73             android:text="@string/add_to_homescreen_add"
74             app:layout_constraintBottom_toBottomOf="parent"
75             app:layout_constraintEnd_toEndOf="parent"
76             app:layout_constraintTop_toBottomOf="@id/shortcut_text" />
78         <Button
79             android:id="@+id/cancel_button"
80             style="@style/CreateShortcutDialogButton"
81             android:background="?selectableItemBackground"
82             android:text="@string/add_to_homescreen_cancel"
83             app:layout_constraintBottom_toBottomOf="@id/add_button"
84             app:layout_constraintEnd_toStartOf="@id/add_button" />
85     </androidx.constraintlayout.widget.ConstraintLayout>
86 </FrameLayout>