如何在Android中将文本视图置于RecyclerView项之上?
如下图所示,我用。如何在Android中将文本视图置于RecyclerView项之上?,android,android-recyclerview,Android,Android Recyclerview,如下图所示,我用。 我想找到一个解决方案,添加一个文本视图,显示在RecyclerView项上,如下图所示。 正如您所看到的,这个文本视图放置在两个或多个RecyclerView项上,那么我如何实现这一点呢? <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" an
我想找到一个解决方案,添加一个文本视图,显示在RecyclerView项上,如下图所示。
正如您所看到的,这个文本视图放置在两个或多个RecyclerView项上,那么我如何实现这一点呢?
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Appointment made 8.15-9.15"
android:textSize="20sp"
android:textStyle="bold"
android:background="@android:color/holo_green_light"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
将其添加到回收器视图上方的activity layout.xml文件中。vazeh tar bego shayad tonsetam komaket konam