Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Creating Loading Dialog #212

Closed
omerarslnn opened this issue Nov 30, 2021 · 3 comments
Closed

[Android] Creating Loading Dialog #212

omerarslnn opened this issue Nov 30, 2021 · 3 comments

Comments

@omerarslnn
Copy link
Collaborator

If the user quickly switches between the tabs at the home screen, it may cause a crash. In this situation, application tries making multiple requests(get user) without waiting their responses which causes a crash.
Network speed may vary device to device. In order for users to send requests sequentially and to prevent the crash, loading dialog should be implemented while communicating with the network (inside the endpoint methods).

@omerarslnn
Copy link
Collaborator Author

Created the loadingDialog and implemented lottieAnimationView using the lottie library.

ref

@omerarslnn
Copy link
Collaborator Author

Added one of the free lotties (lottie) to the project as a raw json object.

@omerarslnn
Copy link
Collaborator Author

omerarslnn commented Nov 30, 2021

Loading Dialog integrated into the getUser endpoint method at the ProfileFragment.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant