I am trying to use the RecyclerView in my fragments. It shows up fine for the first tab, but when I swipe to the second tab and then back to the first one I get the following er
Reading the bug posted by Isaak, the best solution seems to be assigning the Layout Manager as soon as the view is inflated.
In my case, I only had to assign it on onCreate to fix the problem:
mLayoutManager = new LinearLayoutManager(this); mRecyclerView.setLayoutManager(mLayoutManager);