Actually, In onCreate, i'm using StickyHeaderLayoutManager as a layout manager and i'm passing the size of my list is 0 at initial stage. Once i got the data from the api, i'll notify the adapter. The thing is, when i'm passing the list size as 0, the adapter sending IndexOutOfBoundExceptionItemCount is -1.
Actually, In onCreate, i'm using
StickyHeaderLayoutManager
as a layout manager and i'm passing the size of my list is 0 at initial stage. Once i got the data from the api, i'll notify the adapter. The thing is, when i'm passing the list size as 0, the adapter sendingIndexOutOfBoundException
ItemCount is -1.