I\'m having some trouble understanding setHasFixedSize(). I know that it is used for optimization when the size of RecyclerView doesn\'t change, fr
setHasFixedSize()
RecyclerView
If the size of the RecyclerView (the RecyclerView itself)
... does not depend on the adapter content:
mRecyclerView.setHasFixedSize(true);
...depends on the adapter content:
mRecyclerView.setHasFixedSize(false);