here\'s the thing: Anybody know the setHasFixedSize method? some says that it allows for optimizations if all items are of the same size, and in RecyclerView class from andr
setHasFixedSize() is used to let the RecyclerView keep the same size.
This information will be used to optimize itself.
Here is reference url
http://antonioleiva.com/recyclerview/
Example:
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.list); recyclerView.setHasFixedSize(true);