{"action":"created","issue":{"url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/65","repository_url":"https://api.github.com/repos/daimajia/AndroidImageSlider","labels_url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/65/comments","events_url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/65/events","html_url":"https://github.com/daimajia/AndroidImageSlider/issues/65","id":53298910,"node_id":"MDU6SXNzdWU1MzI5ODkxMA==","number":65,"title":"How can I override methods to set \"wrap_content\" for the sliderview instead of giving a specify width/height","user":{"login":"capsulejj","id":5959642,"node_id":"MDQ6VXNlcjU5NTk2NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/5959642?v=4","gravatar_id":"","url":"https://api.github.com/users/capsulejj","html_url":"https://github.com/capsulejj","followers_url":"https://api.github.com/users/capsulejj/followers","following_url":"https://api.github.com/users/capsulejj/following{/other_user}","gists_url":"https://api.github.com/users/capsulejj/gists{/gist_id}","starred_url":"https://api.github.com/users/capsulejj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsulejj/subscriptions","organizations_url":"https://api.github.com/users/capsulejj/orgs","repos_url":"https://api.github.com/users/capsulejj/repos","events_url":"https://api.github.com/users/capsulejj/events{/privacy}","received_events_url":"https://api.github.com/users/capsulejj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-01-03T09:03:13Z","updated_at":"2018-09-10T12:34:59Z","closed_at":null,"author_association":"NONE","body":"How can I override methods to set \"wrap_content\" for the sliderview instead of giving a specify width/height?\n\nand thanks for such a useful library.\n"},"comment":{"url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/comments/419896755","html_url":"https://github.com/daimajia/AndroidImageSlider/issues/65#issuecomment-419896755","issue_url":"https://api.github.com/repos/daimajia/AndroidImageSlider/issues/65","id":419896755,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTg5Njc1NQ==","user":{"login":"smrahmadi","id":28293828,"node_id":"MDQ6VXNlcjI4MjkzODI4","avatar_url":"https://avatars2.githubusercontent.com/u/28293828?v=4","gravatar_id":"","url":"https://api.github.com/users/smrahmadi","html_url":"https://github.com/smrahmadi","followers_url":"https://api.github.com/users/smrahmadi/followers","following_url":"https://api.github.com/users/smrahmadi/following{/other_user}","gists_url":"https://api.github.com/users/smrahmadi/gists{/gist_id}","starred_url":"https://api.github.com/users/smrahmadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smrahmadi/subscriptions","organizations_url":"https://api.github.com/users/smrahmadi/orgs","repos_url":"https://api.github.com/users/smrahmadi/repos","events_url":"https://api.github.com/users/smrahmadi/events{/privacy}","received_events_url":"https://api.github.com/users/smrahmadi/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T12:34:59Z","updated_at":"2018-09-10T12:34:59Z","author_association":"NONE","body":"i fix it with \r\n\r\n`            Picasso.get().load(imageUrl)).into(new Target() {\r\n                @Override\r\n                public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\r\n\r\n                    int width = bitmap.getWidth();\r\n                    int height = bitmap.getHeight();\r\n\r\n                    int tempWidth = (int) (width / Resources.getSystem().getDisplayMetrics()\r\n                        .density);\r\n\r\n                    int sliderHeight = (int) (height / Resources.getSystem().getDisplayMetrics()\r\n                        .density) * slider.getWidth() / tempWidth;\r\n                    ;\r\n\r\n                    slider.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams\r\n                        .MATCH_PARENT, sliderHeight));\r\n                }\r\n\r\n                @Override\r\n                public void onBitmapFailed(Exception e, Drawable errorDrawable) {\r\n\r\n                }\r\n\r\n                @Override\r\n                public void onPrepareLoad(Drawable placeHolderDrawable) {\r\n\r\n                }\r\n            });`"}}
{"actor":{"display_login":"smrahmadi"}}