Bug 1849073 - Part 1: Remove the Bookmark Search Dialog
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / no_collections_message.xml
blobc817159a9c4177515686aec2e0050948840b8122
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 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     android:id="@+id/no_collections_wrapper"
8     android:layout_width="match_parent"
9     android:layout_height="wrap_content"
10     android:layout_marginHorizontal="@dimen/home_item_horizontal_margin"
11     android:layout_marginTop="40dp"
12     android:layout_marginBottom="12dp"
13     android:background="@drawable/empty_session_control_background"
14     android:orientation="vertical"
15     android:padding="16dp">
17     <TextView
18         android:id="@+id/no_collections_header"
19         android:layout_width="wrap_content"
20         android:layout_height="wrap_content"
21         android:text="@string/collections_header"
22         android:textAppearance="@style/HeaderTextStyle"
23         android:textSize="16sp"
24         app:layout_constraintEnd_toStartOf="@id/remove_collection_placeholder"
25         app:layout_constraintHorizontal_bias="0.0"
26         app:layout_constraintStart_toStartOf="parent"
27         app:layout_constraintTop_toTopOf="parent" />
29     <androidx.appcompat.widget.AppCompatImageButton
30         android:id="@+id/remove_collection_placeholder"
31         android:layout_width="wrap_content"
32         android:layout_height="wrap_content"
33         android:background="?android:attr/selectableItemBackgroundBorderless"
34         android:contentDescription="@string/remove_home_collection_placeholder_content_description"
35         app:layout_constraintBottom_toBottomOf="@id/no_collections_header"
36         app:layout_constraintEnd_toEndOf="parent"
37         app:layout_constraintTop_toTopOf="@id/no_collections_header"
38         app:srcCompat="@drawable/mozac_ic_cross_20"
39         app:tint="?attr/textPrimary" />
41     <TextView
42         android:id="@+id/no_collections_description"
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_marginTop="4dp"
46         android:text="@string/no_collections_description2"
47         android:textAlignment="viewStart"
48         android:textColor="?attr/textSecondary"
49         android:textSize="14sp"
50         app:layout_constraintEnd_toEndOf="parent"
51         app:layout_constraintHorizontal_bias="0.0"
52         app:layout_constraintStart_toStartOf="parent"
53         app:layout_constraintTop_toBottomOf="@id/no_collections_header" />
55     <com.google.android.material.button.MaterialButton
56         android:id="@+id/add_tabs_to_collections_button"
57         style="@style/PositiveButton"
58         android:layout_width="match_parent"
59         android:layout_height="wrap_content"
60         android:maxLines="2"
61         android:layout_marginTop="8dp"
62         android:text="@string/tabs_menu_save_to_collection1"
63         android:visibility="gone"
64         app:icon="@drawable/ic_tab_collection"
65         app:layout_constraintBottom_toBottomOf="parent"
66         app:layout_constraintEnd_toEndOf="parent"
67         app:layout_constraintStart_toStartOf="parent"
68         app:layout_constraintTop_toBottomOf="@id/no_collections_description" />
69 </androidx.constraintlayout.widget.ConstraintLayout>