skip to Main Content

Firebase – When i get 10 data next 10 data is downloading but the previous 10 data is disappear how can i fix?(I think something wrong with arraylist)

This is my OnCreateActivity(I didn't put any more to avoid confusion)............................................................................................................................ auth= FirebaseAuth.getInstance() adapters= ImageAdp(ArrayList()) binding.idRLWallpapers.adapter=adapters getUsers(null) override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { var linearLayoutManager:LinearLayoutManager= recyclerView.layoutManager as LinearLayoutManager var currentItems=linearLayoutManager.childCount total_item=linearLayoutManager.itemCount var lastVisibleitem=linearLayoutManager.findFirstVisibleItemPosition() if(!isLoadingEDMT&&total_item<=lastVisibleitem+ITEM_COUNT){ // misLoad=true getUsers(adapters.lastItemId())…

VIEW QUESTION
Back To Top
Search