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

Android Studio – > Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'

When i build the app i got error > Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'. > Cannot use @TaskAction annotation on method DataBindingGenBaseClassesTask.writeBaseClasses() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

VIEW QUESTION
Back To Top
Search