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

Can we show gif image in a notifcation using NotificationTarget? #2900

Closed
fh127 opened this issue Feb 13, 2018 · 3 comments
Closed

Can we show gif image in a notifcation using NotificationTarget? #2900

fh127 opened this issue Feb 13, 2018 · 3 comments

Comments

@fh127
Copy link

fh127 commented Feb 13, 2018

Can we show gif image in a notifcation using NotificationTarget? like this:

GlideApp.with(getApplicationContext())
                        .asGif()
                        .load(imgUrl)
                        .into(new NotificationTarget(
                                context,
                                R.id.remoteview_notification_icon,
                                remoteViews,
                                notification,
                                NOTIFICATION_CODE));

Currently, NotificationTarger isn't supported GifDrawable.

@sjudd
Copy link
Collaborator

sjudd commented Feb 14, 2018

It doesn't look like RemoteViews supports setting a Drawable? https://developer.android.com/reference/android/widget/RemoteViews.html.

If there's a way to set an animated drawable in a notification in general, you can probably find a way to do it with a custom Target in Glide.

@sjudd sjudd added the question label Feb 14, 2018
@stale
Copy link

stale bot commented Feb 21, 2018

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

@stale stale bot added the stale label Feb 21, 2018
@stale stale bot closed this as completed Feb 28, 2018
@azimsidd
Copy link

Please answer this question. How to show the gif in custom notification

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

3 participants