{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/190","labels_url":"https://api.github.com/repos/facebook/fresco/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/190/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/190/events","html_url":"https://github.com/facebook/fresco/issues/190","id":70394131,"number":190,"title":"No image is displayed if set width and height wrap_content","user":{"login":"eresid","id":3881790,"avatar_url":"https://avatars.githubusercontent.com/u/3881790?v=3","gravatar_id":"","url":"https://api.github.com/users/eresid","html_url":"https://github.com/eresid","followers_url":"https://api.github.com/users/eresid/followers","following_url":"https://api.github.com/users/eresid/following{/other_user}","gists_url":"https://api.github.com/users/eresid/gists{/gist_id}","starred_url":"https://api.github.com/users/eresid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eresid/subscriptions","organizations_url":"https://api.github.com/users/eresid/orgs","repos_url":"https://api.github.com/users/eresid/repos","events_url":"https://api.github.com/users/eresid/events{/privacy}","received_events_url":"https://api.github.com/users/eresid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T12:03:01Z","updated_at":"2015-04-23T17:07:09Z","closed_at":"2015-04-23T17:07:09Z","body":"Example:\r\n```java\r\n    private void drawSmile() {\r\n       SimpleDraweeView image = (SimpleDraweeView) findViewById(R.id.image);\r\n        Uri uri = Uri.parse(file);\r\n        DraweeController controller = Fresco.newDraweeControllerBuilder()\r\n                .setUri(uri)\r\n                .build();\r\n        image.setController(controller);\r\n    }\r\n```\r\n\r\n```xml\r\n<com.facebook.drawee.view.SimpleDraweeView\r\n  android:id=\"@+id/image\"\r\n  android:layout_width=\"wrap_content\"\r\n  android:layout_height=\"wrap_content\"/>\r\n```\r\n\r\nAnd incorrect width if set size in code:\r\n```java\r\nLinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, 100);\r\nimage.setLayoutParams(layoutParams);\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/95655787","html_url":"https://github.com/facebook/fresco/issues/190#issuecomment-95655787","issue_url":"https://api.github.com/repos/facebook/fresco/issues/190","id":95655787,"user":{"login":"tyronen","id":958570,"avatar_url":"https://avatars.githubusercontent.com/u/958570?v=3","gravatar_id":"","url":"https://api.github.com/users/tyronen","html_url":"https://github.com/tyronen","followers_url":"https://api.github.com/users/tyronen/followers","following_url":"https://api.github.com/users/tyronen/following{/other_user}","gists_url":"https://api.github.com/users/tyronen/gists{/gist_id}","starred_url":"https://api.github.com/users/tyronen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyronen/subscriptions","organizations_url":"https://api.github.com/users/tyronen/orgs","repos_url":"https://api.github.com/users/tyronen/repos","events_url":"https://api.github.com/users/tyronen/events{/privacy}","received_events_url":"https://api.github.com/users/tyronen/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T17:07:09Z","updated_at":"2015-04-23T17:07:09Z","body":"wrap_content in both dimensions is [not supported](http://frescolib.org/docs/using-drawees-xml.html#wrap-content).\r\n\r\nIn the example you gave, you should just set the XML width and height to the values you want."}}