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.
短い質問があります。下の画像のように、リサイクラー ビューでカードのグループのヘッダーを作成するにはどうすればよいですか。
答えてくれてどうもありがとう
で別のタイプの を設定ViewHolderしRecyclerView、メソッドをオーバーライドして、getItemViewTypeペイントする必要があるものを選択する必要があります。これについて詳しくは、複数のビュー タイプで RecyclerView を作成する方法をご覧ください。
ViewHolder
RecyclerView
getItemViewType