-
Notifications
You must be signed in to change notification settings - Fork 4k
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
picasso placeholder nonsupport AppCompatDelegate #2082
Comments
This is not enough information for an actionable report. Please provide a failing test case or sample which demonstrates the problem. |
I mean in case we want some theme-depended drawable (vector, for example, which could be passed theme's color as attribute, not constant color value). By that a placeholder's drawable could be "lighter" in dark theme, and "darker" in light theme, dynamically. (IMO, caching a placeholder drawable is not necessary, as it doesn't consume too much resource). The problem now is: Picasso will use a final ApplicationContext for its #getDrawable() action, which will not listen to theme's attributes. Don't know if you are interested in theming and support libraries or not, but it would be nice if Picasso supports something like ContextCompat.getDrawable(). |
Got it. We're tracking that use case with #1275. |
in Activity call
placeholder image Resources no change drawable-night-xxhdpi The main reason:
picasso.context is ApplicationContext Can't get AppCompatActivity theme Need to change:Picasso -Builder
|
drawable Choice problem
The text was updated successfully, but these errors were encountered: