Reputation: 83
How can I accomplish the above design using recycler view list adapter, prefarably in kotlin (Java is fine too).
I was wondering if there was a way to accomplish this without third party libraries, just using StaggeredGridLayoutManager
Upvotes: 0
Views: 57
Reputation: 8457
Yes you can. This is just a RecyclerView
with StaggeredGridLayoutManager
and two different RecyclerView.ViewHolder
implementations.
ImageView
and create a RecyclerView.ViewHolderImageView
and create a RecyclerView.ViewHolder
for that one tooThen just map your Image collection into a list of these two types of viewholder and feed that to your recyclerview adapter
Upvotes: 1