Android, on finish loading data from firebase
问题 How to show the Progressbar on start of the activity that contains recycler view which should be hidden once the recycler view loads the data from firebase database? In onCreate method I am showing my ProgressBar but I don't know when should I hide it. Can you guys give me some ideas? Thanks 回答1: Assuming you are using a FirestoreRecyclerAdapter , to solve this, create a new object of ProgressBar and start showing it in the onCreate() method, or if you want add it directly in your .XML file