Merge "Disable the defulat animation of the RecyclerView to avoid UI jank." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72dac6e5be
@@ -109,6 +109,7 @@ public class ContextualCardsFragment extends InstrumentedFragment implements
|
||||
mCardsContainer.setLayoutManager(mLayoutManager);
|
||||
mContextualCardsAdapter = new ContextualCardsAdapter(context, this /* lifecycleOwner */,
|
||||
mContextualCardManager);
|
||||
mCardsContainer.setItemAnimator(null);
|
||||
mCardsContainer.setAdapter(mContextualCardsAdapter);
|
||||
mContextualCardManager.setListener(mContextualCardsAdapter);
|
||||
mCardsContainer.setListener(this);
|
||||
|
Reference in New Issue
Block a user