| <?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"> |
| |
| <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_marginEnd="16dp" |
| app:layout_constraintStart_toStartOf="parent" |
| 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" /> |
| |
| <ScrollView |
| android:id="@+id/scroll_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="false" > |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" > |
| |
| <org.chromium.chrome.browser.bookmarks.BookmarkTextInputLayout |
| android:id="@+id/title_text" |
| style="@style/Widget.Material3.TextInputLayout.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:hint="@string/bookmark_name" |
| app:emptyErrorMessage="@string/bookmark_missing_title"> |
| <com.google.android.material.textfield.TextInputEditText |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:minHeight="48dp" |
| android:imeOptions="flagNoExtractUi" |
| android:inputType="textCapSentences|textAutoCorrect" |
| android:singleLine="true" /> |
| </org.chromium.chrome.browser.bookmarks.BookmarkTextInputLayout> |
| |
| <org.chromium.chrome.browser.bookmarks.BookmarkTextInputLayout |
| android:id="@+id/url_text" |
| style="@style/Widget.Material3.TextInputLayout.OutlinedBox" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop= |
| "@dimen/desktop_bookmark_dialog_text_input_margin_top" |
| android:hint="@string/bookmark_url" |
| app:emptyErrorMessage="@string/bookmark_missing_url"> |
| |
| <com.google.android.material.textfield.TextInputEditText |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:minHeight="48dp" |
| android:imeOptions="flagNoExtractUi" |
| android:inputType="textUri" |
| android:singleLine="true" /> |
| </org.chromium.chrome.browser.bookmarks.BookmarkTextInputLayout> |
| |
| <TextView |
| android:id="@+id/folder_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop= |
| "@dimen/desktop_bookmark_dialog_container_margin" |
| android:layout_marginStart="3dp" |
| android:layout_marginEnd="3dp" |
| android:text="@string/bookmark_folder" |
| android:textAppearance= |
| "@style/TextAppearance.TextSmall.Secondary" /> |
| |
| <!-- |
| This row is laid out for a recycler view, so when it's |
| embedded in the edit flow the margins need to be adjusted |
| to be left aligned with the title. |
| --> |
| <FrameLayout |
| android:id="@+id/folder_row_container" |
| android:layout_marginTop="6dp" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"/> |
| |
| </LinearLayout> |
| </ScrollView> |
| |
| <LinearLayout |
| android:id="@+id/button_container" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintTop_toBottomOf="@id/scroll_view" |
| app:layout_constraintBottom_toBottomOf="parent" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_marginTop= |
| "@dimen/desktop_bookmark_dialog_container_margin" |
| android:gravity="center|end"> |
| |
| <org.chromium.ui.widget.ButtonCompat |
| android:id="@+id/remove_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="16dp" |
| android:focusable="true" |
| style="@style/TextButton" |
| android:text="@string/remove" /> |
| |
| <org.chromium.ui.widget.ButtonCompat |
| android:id="@+id/save_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:focusable="true" |
| style="@style/FilledButton" |
| android:text="@string/save" /> |
| </LinearLayout> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |