blob: f2c260cc9458a5a697685452db3b60bd884f5316 [file]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/desktop_bookmark_dialog_padding">
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/back_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_arrow_back_24dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/back"
app:tint="@color/default_icon_color_tint_list"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/title"
app:layout_constraintBottom_toBottomOf="@id/title" />
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:minHeight="24dp"
android:gravity="center_vertical"
android:textAppearance="@style/TextAppearance.Headline.Primary"
android:singleLine="true"
android:ellipsize="end"
android:layout_marginStart="16dp"
app:layout_goneMarginStart="0dp"
android:layout_marginEnd="16dp"
app:layout_constraintStart_toEndOf="@id/back_button"
app:layout_constraintEnd_toStartOf="@id/close_button"
app:layout_constraintTop_toTopOf="parent" />
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/close_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/material_ic_close_24dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/close"
app:tint="@color/default_icon_color_tint_list"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/title"
app:layout_constraintBottom_toBottomOf="@id/title" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/folder_recycler_view"
app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/button_container"
app:layout_constraintVertical_chainStyle="packed"
app:layout_constraintVertical_bias="0.0"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop=
"@dimen/desktop_bookmark_dialog_container_margin"
app:layout_constrainedHeight="true"
android:clipToPadding="true"
android:scrollbars="vertical"
android:background="@null" />
<LinearLayout
android:id="@+id/button_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/folder_recycler_view"
app:layout_constraintBottom_toBottomOf="parent"
android:orientation="horizontal"
android:layout_marginTop=
"@dimen/desktop_bookmark_dialog_container_margin"
android:gravity="center|end">
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/new_folder_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd=
"@dimen/bookmark_folder_picker_button_horizontal_spacing"
android:focusable="true"
style="@style/TextButton"
android:text="@string/new_folder" />
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/move_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="true"
style="@style/FilledButton"
android:text="@string/folder_picker_move_here" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>