0

I have an App with retrofit and I make some calls to an Api (like a LogIn in this case), some of them take a few seconds to load, so I want to know when I should make a loading screen and lock the interaction with the user. I see that ProgressDialog is deprecated now, and they don't display it but they lock the interaction with the view. What should be better?

Sumit Shukla
  • 4,116
  • 5
  • 38
  • 57
David
  • 414
  • 7
  • 17

1 Answers1

3
  • First of all it is not ProgressBar but it is ProgressDialog because it locks down user interaction until it hides.
  • You can use a progress indicator like ProgressBar, which can be embedded in your app's UI. Alternatively, you can use a notification to inform the user of the task's progress.Here

  • A skeleton screen helps load a user interface gradually, a little at a time. This means that the barebones UI displays first. Then the loaded content is gradually populated on-screen.

  • Shimmer effect was created by Facebook to indicate a loading status, so instead of using ProgressBar or usual loader use Shimmer for a better design and user interface.
Sumit Shukla
  • 4,116
  • 5
  • 38
  • 57
  • If i want to lock the user interaction in a login to prevent that the user click again login button (or any other button in the view) what should i do? – David Jul 31 '19 at 15:55
  • Then? The grace isn't in not blocking the interaction with the user? – David Jul 31 '19 at 16:04
  • You can disable or hide login button once it is clicked until response as success or not is received something like that. And there are many more things you can do!! – Sumit Shukla Jul 31 '19 at 16:07