首页 > 解决方案 > 明文显示在recyclerview后面

问题描述

我想知道,有没有办法在我的 recyclerview 前面设置明文?

我有这个文本字段:

在此处输入图像描述

当我在应用程序中单击此字段时,它位于 recyclerview 下,所以我看不到我在输入什么:

在此处输入图像描述

XML EditText(纯文本)

    <EditText
        android:id="@+id/EditText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="44dp"
        android:layout_marginLeft="44dp"
        android:ems="10"
        android:hint="@string/edit_hint_text"
        android:inputType="textPersonName"
        app:layout_constraintBottom_toTopOf="@+id/CloseApp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/recyclerView" />

标签: javaandroid

解决方案


有,在设计视图中,将您的编辑文本拖放到您的布局下

所以它会是这样的:

在此处输入图像描述

我的英语不是我的主要语言,如果我的语法太差,请见谅。


推荐阅读