{"action":"created","issue":{"url":"https://api.github.com/repos/sayyam/carouselview/issues/20","repository_url":"https://api.github.com/repos/sayyam/carouselview","labels_url":"https://api.github.com/repos/sayyam/carouselview/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/sayyam/carouselview/issues/20/comments","events_url":"https://api.github.com/repos/sayyam/carouselview/issues/20/events","html_url":"https://github.com/sayyam/carouselview/issues/20","id":150107265,"number":20,"title":"Loading urls using Glide","user":{"login":"wildfiregt","id":17387206,"avatar_url":"https://avatars.githubusercontent.com/u/17387206?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiregt","html_url":"https://github.com/wildfiregt","followers_url":"https://api.github.com/users/wildfiregt/followers","following_url":"https://api.github.com/users/wildfiregt/following{/other_user}","gists_url":"https://api.github.com/users/wildfiregt/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiregt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiregt/subscriptions","organizations_url":"https://api.github.com/users/wildfiregt/orgs","repos_url":"https://api.github.com/users/wildfiregt/repos","events_url":"https://api.github.com/users/wildfiregt/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiregt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-04-21T15:24:22Z","updated_at":"2016-07-18T06:08:41Z","closed_at":null,"body":"Hi \r\nLoading images from drawable works yes, but when you try with big images it causes memory leaks and crash. I tried loading using Glide or picasso\r\n\r\n\r\n`\r\n      ImageListener imageListener = new ImageListener() {\r\n        @Override\r\n        public void setImageForPosition(int position, ImageView imageView) {\r\n            Glide.with(context).load(url).into(imageView)\r\n        }\r\n    };`\r\n\r\nBut it doesn't load anything. Any idea how to load from urls ?"},"comment":{"url":"https://api.github.com/repos/sayyam/carouselview/issues/comments/233237889","html_url":"https://github.com/sayyam/carouselview/issues/20#issuecomment-233237889","issue_url":"https://api.github.com/repos/sayyam/carouselview/issues/20","id":233237889,"user":{"login":"skmlcd","id":10860015,"avatar_url":"https://avatars.githubusercontent.com/u/10860015?v=3","gravatar_id":"","url":"https://api.github.com/users/skmlcd","html_url":"https://github.com/skmlcd","followers_url":"https://api.github.com/users/skmlcd/followers","following_url":"https://api.github.com/users/skmlcd/following{/other_user}","gists_url":"https://api.github.com/users/skmlcd/gists{/gist_id}","starred_url":"https://api.github.com/users/skmlcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skmlcd/subscriptions","organizations_url":"https://api.github.com/users/skmlcd/orgs","repos_url":"https://api.github.com/users/skmlcd/repos","events_url":"https://api.github.com/users/skmlcd/events{/privacy}","received_events_url":"https://api.github.com/users/skmlcd/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T06:08:41Z","updated_at":"2016-07-18T06:08:41Z","body":"Look at this issue: #6 \r\n\r\nIt works. Here is the code in my example:\r\n\r\n```java\r\nprivate List<String> mImages;\r\n\r\n@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\r\n\r\n\tmImages = // load images here from database into a List with strings (URLs)\r\n\r\n\tCarouselView carouselView = (CarouselView) findViewById(R.id.carouselView);\r\n\tif (carouselView != null) {\r\n\t    carouselView.setPageCount(mImages.size());\r\n\t    carouselView.setImageListener(imageListener);\r\n\t}\r\n}\r\n\r\nImageListener imageListener = new ImageListener() {\r\n    @Override\r\n    public void setImageForPosition(int position, ImageView imageView) {\r\n        Glide.with(getApplicationContext())\r\n                .load(mImages.get(position))\r\n                .centerCrop()\r\n                .placeholder(R.drawable.placeholder_image)\r\n                .into(imageView);\r\n    }\r\n};\r\n\r\n```\r\n\r\nIf you got it working now or don't need help anymore, please close this issue.\r\n"}}
{"actor":{"display_login":"skmlcd"}}