I want to place two layouts containing RecyclerViews side by side, so that they have the same width and fill their parents, i.e. each one should have 50% of its parent's layout width.
Usually you set layout_weight for that, but layout_weight does not work with RecyclerViews on old devices. If layout_weight is set, it stops recycling and just creates all views for all items at once, which is too slow, especially on old devices.
What are the alternatives?
I use Jetpack 1.1.0. Perhaps the issue has been fixed in 1.2.0?
Is there some other layout xml attribute for half-width?
Do not use the xml layout and set layoutparams in code to screen width / 2?
Change the item count, so that the adapter only has the visible items, and somehow new items are added, when the user scrolls down in the view?