我想创建一个具有固定第一行的回收器视图,该视图应充当标题。另外,如何防止它与其他行元素一起滚动?
不要将固定标头放入RecyclerView。包裹住RecyclerView in a vertical LinearLayout,其上方有固定标题。
RecyclerView
vertical
LinearLayout