<com.google.android.material.textfield.TextInputEditText
android:id="@+id/txtCultivars"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:hint="[可选,点击选择]"
android:inputType="none"
android:longClickable="false"
android:textIsSelectable="false" />
重点
android:cursorVisible=“false”,不显示输入光标
android:focusable=“false”,不能获得焦点
android:focusableInTouchMode=“false”,触摸时不能获得焦点
android:inputType=“none”
android:longClickable=“false”,不允许长按或长点击
android:textIsSelectable=“false”,不允许选择文本