Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简短的问题。如何在 recyclerview 上为卡片上的组制作标题,如下图所示。
非常感谢您的回答
您需要在 中设置另一种类型ViewHolder,RecyclerView并覆盖该方法getItemViewType以选择您需要绘制的那些。您可以在How to create RecyclerView with multiple view type?中了解更多信息?
ViewHolder
RecyclerView
getItemViewType