Android SortedList Explained

Lets Explore the Toys?

SortedList

SortedList.CallBack

SortedList.BatchedCallback

SortedListAdapterCallback

Show me the code!

  • Add random user to list.
  • Add bulk user (10 users) to list.
  • Remove random user
  • Change list order criteria (Sort by user age)
  • Change list order criteria (Sort by user score)

Create your POJO

Create your Adapter

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store