910e62b5创建于 1月15日历史提交
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<org.chromium.chrome.browser.suggestions.tile.tile_edit_dialog.CustomTileEditView
    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">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="22dp"
            android:layout_marginTop="24dp"
            android:layout_marginBottom="0dp"
            android:layout_gravity="center_horizontal"
            android:orientation="vertical">

            <com.google.android.material.textfield.TextInputLayout
                android:labelFor="@+id/name_field"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                android:hint="@string/edit_shortcut_hint_name"
                app:errorTextAppearance="@style/TextAppearance.ErrorCaption"
                app:errorEnabled="true">

                <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/name_field"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:imeOptions="actionDone"
                    android:inputType="textCapSentences|textAutoCorrect"
                    android:singleLine="true" />
            </com.google.android.material.textfield.TextInputLayout>

            <com.google.android.material.textfield.TextInputLayout
                android:labelFor="@+id/url_field"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                android:hint="@string/edit_shortcut_hint_url"
                app:errorTextAppearance="@style/TextAppearance.ErrorCaption"
                app:errorEnabled="true">

                <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/url_field"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:imeOptions="actionDone"
                    android:singleLine="true" />
            </com.google.android.material.textfield.TextInputLayout>

        </LinearLayout>
    </ScrollView>
</org.chromium.chrome.browser.suggestions.tile.tile_edit_dialog.CustomTileEditView>