Recyclerview Pro Tip - set setHasFixedSize
This commit is contained in:
parent
60cff306c4
commit
9964f12c86
1 changed files with 1 additions and 0 deletions
|
@ -349,6 +349,7 @@ public class NewsReaderDetailFragment extends Fragment {
|
|||
View rootView = inflater.inflate(R.layout.fragment_newsreader_detail, container, false);
|
||||
ButterKnife.bind(this, rootView);
|
||||
|
||||
recyclerView.setHasFixedSize(true);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));
|
||||
recyclerView.setItemAnimator(new DefaultItemAnimator());
|
||||
|
||||
|
|
Loading…
Reference in a new issue