如何将 com.google.android.material.textfield.TextInputEditText 制作为文本视图?

问题描述 投票:0回答:1
                <com.google.android.material.textfield.TextInputLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="32dp"
                    android:layout_marginTop="16sp"
                    android:layout_marginEnd="32dp"
                    app:boxStrokeColor="@color/blue">

                    <com.google.android.material.textfield.TextInputEditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/quicksand_bold"
                        android:hint="Full Name"
                        android:textColor="@color/blue"
                        android:textColorHint="@color/blue" />

                </com.google.android.material.textfield.TextInputLayout>

我将其用于 Edittext,但我不知道如何将其用于 Textview

android native-android
1个回答
0
投票
android:focusable="false"
android:clickable="false"
android:cursorVisible="false"

将其添加到EditText

© www.soinside.com 2019 - 2024. All rights reserved.