| <?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="match_parent" |
| android:minHeight="@dimen/bookmark_minimum_dialog_size_tablet" |
| android:background="@macro/default_bg_color"> |
| |
| <androidx.appcompat.widget.Toolbar |
| android:id="@+id/toolbar" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/toolbar_height_no_shadow" |
| style="@style/ModernToolbar" /> |
| |
| <View |
| android:id="@+id/shadow" |
| app:layout_constraintTop_toTopOf="@id/toolbar" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/bookmark_dialog_toolbar_shadow_height" |
| android:layout_marginTop="@dimen/toolbar_height_no_shadow" |
| android:background="@drawable/bookmark_title_bar_shadow" |
| android:visibility="gone" /> |
| |
| <ScrollView |
| android:id="@+id/scroll_view" |
| app:layout_constraintTop_toBottomOf="@id/toolbar" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintBottom_toTopOf="@id/button_container" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:clipToPadding="false" > |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="16dp" |
| android:layout_marginStart="16dp" |
| android:orientation="vertical" > |
| |
| <org.chromium.chrome.browser.bookmarks.BookmarkTextInputLayout |
| android:id="@+id/title_text" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="22dp" |
| 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" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="24dp" |
| 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="18dp" |
| 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_marginStart= |
| "@dimen/improved_bookmark_row_horizontal_negative_margin" |
| 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_constraintBottom_toBottomOf="parent" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:paddingTop= |
| "@dimen/bookmark_folder_picker_button_container_top_padding" |
| android:paddingBottom= |
| "@dimen/bookmark_folder_picker_button_container_bottom_padding" |
| android:paddingHorizontal="16dp" |
| 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> |