Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the trackBy equivalent in RecyclerView, DiffUtil, provide?

  1. A Efficient updates by computing the minimal set of item changes
  2. B Automatic scrolling
  3. C Data caching
  4. D View recycling itself
Answer

Efficient updates by computing the minimal set of item changes

Calling notifyDataSetChanged rebinds everything and loses animations, whereas DiffUtil updates only what actually changed.

All Android MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as