vedangj044 / Frisson

Android app to read reports of UFO sightings
5 stars 2 forks source link

Add ProgressBar to activity_main.xml #24

Closed codeDamon closed 3 years ago

codeDamon commented 3 years ago

I'm submitting a

Current Behaviour:

When the data is fetching from the api, the screen (RecyclerView) is empty.

Expected Behaviour:

User should see a loading ui while the data from api is being fetched.

Steps to reproduce:

Result

This will improve User experience of the app.

Do you want to work on this issue?

I can work on this issue.

vedangj044 commented 3 years ago

Great, we do need this. Please make a PR. Do keep in mind the following this

  1. The progress bar would be visible initially, and it would set to View.GONE when the data arrives, you can use the resultCount live data observer to get the event of when the data arrives. find here
  2. The color of the progress bar should be @color/backdrop_text_color
  3. Use find view by id