Navan Interview Question

(15 minutes) Implement an infinitely scrollable list.

Interview Answer

Anonymous

Apr 24, 2018

Use RecyclerView and keep track of the last visible object's index in the list. Set some constant called THRESHOLD_TO_LOAD_MORE where, if the last visible object's index surpasses this value, load the next page of items.