Newer
Older
SafeTreeController / app / src / main / res / layout / dialog_input_socket_ip.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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">

    <com.google.android.material.textfield.TextInputLayout
        style="@style/ThemeOverlay.Material3.AutoCompleteTextView.OutlinedBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="@dimen/dp_25"
        android:layout_marginTop="@dimen/dp_20"
        android:layout_marginBottom="@dimen/dp_10"
        app:boxBackgroundColor="@color/white"
        app:boxBackgroundMode="outline"
        app:boxCornerRadiusBottomEnd="@dimen/dp_5"
        app:boxCornerRadiusBottomStart="@dimen/dp_5"
        app:boxCornerRadiusTopEnd="@dimen/dp_5"
        app:boxCornerRadiusTopStart="@dimen/dp_5"
        app:endIconMode="clear_text">

        <androidx.appcompat.widget.AppCompatEditText
            android:id="@+id/inputView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@null"
            android:hint="安全树数据通信IP地址"
            android:inputType="textEmailAddress"
            android:padding="@dimen/dp_10"
            android:textSize="@dimen/sp_16" />
    </com.google.android.material.textfield.TextInputLayout>
</LinearLayout>