I'm using Firestore as a database and RecyclerView
combined with FirestorePagingAdapter
to present data in my Android app.
Data presented is sorted by date and I'd like to set default start position for RecyclerView
to show a recent object. Currently, by default it shows the first one, which in my case is the oldest one. This is problematic for a long list, as user has to scroll down for a long time.
Is it possible to somehow override this behavior?
EDIT 1: I already sort data by date, but I'd like to start from objects in the middle (e.g. from the current month) and have ability to scroll backward and forward. For example imagine list of movies - you want to see recent ones and have ability to scroll to older and newer ones.