I have a left handed and right handed layout which need to be placed in the appropriate column in a RecyclerView. I'm using a StaggeredGridLayout as the layouts can be of different sizes as well. I'm trying to control the placement of the child layouts and not having much luck as once the left/right orientation breaks it stays broken.
The GridLayoutManager was better at keeping the layouts in order but created odd spacing when the larger layouts were used. Even if I could use the GridLayoutManager I would still need the ability to control the left/right sides as the data can arrive in a variety of orders.
I should also note that this RecyclerView is already inside of another RecyclerView so the adapter and layoutManager are being set inside of the onBindViewHolder() of the parent RV.
Instead of solving this by using the GridLayoutManager options I added GridLayout in the xml.
Then I split the parent ArrayList into a right and left ArrayList in the OnBindViewHolder(). I end up with two child RecyclerViews, but it works and I have fine control over the appearance.