-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix #849: Loading progress for image #850
Fix #849: Loading progress for image #850
Conversation
//TODO b/228077205,
//TODO b/228077205,
//TODO b/228077205,
… loading-progress-for-image
core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt
Outdated
Show resolved
Hide resolved
core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt
Outdated
Show resolved
Hide resolved
...n/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt
Outdated
Show resolved
Hide resolved
...n/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt
Outdated
Show resolved
Hide resolved
...n/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt
Outdated
Show resolved
Hide resolved
...n/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt
Outdated
Show resolved
Hide resolved
core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM, although we should confirm with the project maintainers if ic_placeholder_default
should really be used by default for all DynamicAsyncImage
.
@dturner Could you please confirm this to us ? |
@tunjid Could you please confirm this for us? |
core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt
Show resolved
Hide resolved
@qamarelsafadi thank you so much for your changes. Do you mind updating your PR description to say "This PR was submitted by a member of the GTC open source initiative" instead? |
Done @tunjid |
Indeed, this broke previews and the new screenshot tests #876 |
What?
Fixes #849
Why?
This pull request addresses an enhancement for showing loading progress while the Image is showing
How?
To make this enhancement I had to check the status of the Async Image if it is loading show a CirclularProgresBar which will disappear once the image is loaded and shown it.
after doing this the app looks on fire 🚀!
Screen.Recording.2023-07-22.at.12.07.03.PM.mov
This PR was submitted by a member of the GTC open source initiative