Bug 1849073 - Part 1: Remove the Bookmark Search Dialog
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / component_bookmark.xml
blob5bc9eab4068b8189f6267e74a74ed29b994e8933
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/. -->
4 <androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
5     xmlns:app="http://schemas.android.com/apk/res-auto"
6     xmlns:tools="http://schemas.android.com/tools"
7     android:id="@+id/swipe_refresh"
8     android:layout_width="match_parent"
9     android:layout_height="match_parent">
11     <androidx.constraintlayout.widget.ConstraintLayout
12         android:id="@+id/bookmarks_wrapper"
13         android:layout_width="match_parent"
14         android:layout_height="match_parent">
16         <androidx.recyclerview.widget.RecyclerView
17             android:id="@+id/bookmark_list"
18             android:layout_width="match_parent"
19             android:layout_height="wrap_content"
20             android:clipToPadding="false"
21             android:paddingTop="8dp"
22             android:scrollbars="vertical"
23             app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
24             app:layout_constraintEnd_toEndOf="parent"
25             app:layout_constraintStart_toStartOf="parent"
26             app:layout_constraintTop_toTopOf="parent"
27             tools:listitem="@layout/library_site_item" />
29         <TextView
30             android:id="@+id/bookmarks_empty_view"
31             android:layout_width="wrap_content"
32             android:layout_height="wrap_content"
33             android:layout_gravity="center"
34             android:text="@string/bookmarks_empty_message"
35             android:textColor="?attr/textSecondary"
36             android:textSize="16sp"
37             android:visibility="gone"
38             app:layout_constraintBottom_toBottomOf="parent"
39             app:layout_constraintEnd_toEndOf="parent"
40             app:layout_constraintStart_toStartOf="parent"
41             app:layout_constraintTop_toTopOf="parent" />
43         <com.google.android.material.button.MaterialButton
44             android:id="@+id/bookmark_folders_sign_in"
45             style="@style/NeutralButton"
46             android:layout_width="wrap_content"
47             android:layout_height="wrap_content"
48             android:text="@string/bookmark_sign_in_button"
49             app:layout_constraintBottom_toBottomOf="parent"
50             app:layout_constraintEnd_toEndOf="parent"
51             app:layout_constraintStart_toStartOf="parent"
52             app:layout_constraintTop_toBottomOf="@id/bookmark_list"
53             app:layout_constraintVertical_bias="0.0" />
55         <ProgressBar
56             android:id="@+id/bookmarks_progress_bar"
57             android:layout_width="wrap_content"
58             android:layout_height="wrap_content"
59             app:layout_constraintBottom_toBottomOf="parent"
60             app:layout_constraintEnd_toEndOf="parent"
61             app:layout_constraintStart_toStartOf="parent"
62             app:layout_constraintTop_toTopOf="parent" />
64     </androidx.constraintlayout.widget.ConstraintLayout>
65 </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>