Hack that RecyclerView!
Shivam Satija
18211

This is wrong, wrong, wrong. There is a component whose SOLE responsibility is deciding how the items in recyclerview are laid out: RecyclerView.LayoutManager. Just create a custom one or simply subclass LinearLayoutManager, it’s easier and cleaner, and this situation is exactly the reason why it exists.

Show your support

Clapping shows how much you appreciated Joshua Pierce’s story.