{"action":"opened","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/1116","repository_url":"https://api.github.com/repos/bumptech/glide","labels_url":"https://api.github.com/repos/bumptech/glide/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/1116/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/1116/events","html_url":"https://github.com/bumptech/glide/issues/1116","id":146586557,"number":1116,"title":"Show a placeholder of image color (almost)","user":{"login":"soganiabhijeet","id":7848984,"avatar_url":"https://avatars.githubusercontent.com/u/7848984?v=3","gravatar_id":"","url":"https://api.github.com/users/soganiabhijeet","html_url":"https://github.com/soganiabhijeet","followers_url":"https://api.github.com/users/soganiabhijeet/followers","following_url":"https://api.github.com/users/soganiabhijeet/following{/other_user}","gists_url":"https://api.github.com/users/soganiabhijeet/gists{/gist_id}","starred_url":"https://api.github.com/users/soganiabhijeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soganiabhijeet/subscriptions","organizations_url":"https://api.github.com/users/soganiabhijeet/orgs","repos_url":"https://api.github.com/users/soganiabhijeet/repos","events_url":"https://api.github.com/users/soganiabhijeet/events{/privacy}","received_events_url":"https://api.github.com/users/soganiabhijeet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T11:20:12Z","updated_at":"2016-04-07T11:20:12Z","closed_at":null,"body":"<!--\r\nPlease fill in the below fields with some data to help us best diagnose the issue.\r\nThe more specific you are, the better! You can help a lot by not making us ask these questions.\r\nFeel free to remove any irrelevant parts that you know are not related to the issue.\r\nAny HTML comment like this will be stripped when rendering markdown, no need to delete them.\r\n-->\r\n\r\nI have a doubt on using glide. So I m trying to create a light placeholder before the actual image is loaded. The work of computing the placeholder is done on a different thread and on its success I am calling glide to load the image. \r\n\r\nHere is the code snippet :\r\n\r\n\r\nprivate void loadImageOnBackground(String imgBase, String imgUrl, ImageView imageView) {\r\n        blurImageDetector = Observable.create(new Observable.OnSubscribe<Drawable>() {\r\n            @Override\r\n            public void call(Subscriber<? super Drawable> subscriber) {\r\n                subscriber.onNext(ImageUtils.getPreviewPlaceholder(context, imgBase));\r\n            }\r\n        });\r\n        blurImageSubscriber = blurImageDetector.subscribeOn(Schedulers.computation())\r\n                .observeOn(AndroidSchedulers.mainThread())\r\n                .subscribe(returnValue -> addBlurredImage(returnValue, imgUrl, imageView));\r\n\r\n    }\r\n\r\n    private void addBlurredImage(Drawable placeholder, String imgUrl, ImageView imageView) {\r\n        Glide.with(context).load(imgUrl).placeholder(placeholder).into(imageView);\r\n    }\r\n\r\nWe guys are using RxJava for background computation. \r\nloadImageOnBackground() method is called on onBindViewHolder of adapter. \r\n\r\nThe problem I am facing is that the final image is shown on a different ImageView due to recycling nature of recyclerView. Any help would be appreciated. \r\n<!-- What version of Glide you're running, for example: 3.7.1 | 3.8.0-SNAPSHOT | 4.0.0-SNAPSHOT\r\nIt's essentially the version number from your build.gradle: `dependencies { compile '...:x.y.z' }` -->\r\n**Glide Version**:3.6.1\r\n\r\n<!-- Do you use any integration library, like OkHttp3 or Volley? For example:\r\nFails to display with stock networking, but works with okhttp3-1.4.0 -->\r\n**Integration libraries**:\r\n\r\n<!-- What devices you managed to get the issue to come up on? For example:\r\nfails on Galaxy S4/GT-I9500 4.4.2, works fine on Nexus 6P 5.1 and Genymotion Nexus 5 5.0.1 -->\r\n**Device/Android Version**:\r\n\r\n<!-- Share the details of your issue in prose, detailing actual and expected behavior. It also helps if you give some info **why** you are trying to do something as opposed to **what** is not working. -->\r\n**Issue details / Repro steps / Use case background**: \r\n\r\n<!-- How do you use Glide?\r\nMake sure you include everything as is in your app's code:\r\nChanging a single method parameter can yield totally different results.\r\nPlease clarify any magic variables that appear in the code, for example: \"// `this` is a Fragment\"\r\n-->\r\n**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:\r\n```java\r\nGlide.with...\r\n```\r\n\r\n<!-- How does your app look like?\r\nWe're most interested in the layout attributes and the hierarchy around the ImageView -->\r\n**Layout XML**:\r\n```xml\r\n<FrameLayout xmlns:android=\"...\r\n```\r\n\r\n<!--\r\nWhat is the error message that you got in the log?\r\nYou can find some help on diagnosing issues here: https://github.com/bumptech/glide/wiki/Debugging-and-Error-Handling\r\n-->\r\n**Stack trace / LogCat**:\r\n```ruby\r\npaste stack trace and/or log here\r\n```\r\n\r\n<!-- Bonus points if you attach a relevant screenshot, screen recording or a small demo project -->\r\n"}}