{"action":"created","issue":{"url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/6","repository_url":"https://api.github.com/repos/flschweiger/SwipeStack","labels_url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/6/comments","events_url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/6/events","html_url":"https://github.com/flschweiger/SwipeStack/issues/6","id":138105234,"number":6,"title":"cannot use with Picasso ?","user":{"login":"korrio","id":2325299,"avatar_url":"https://avatars.githubusercontent.com/u/2325299?v=3","gravatar_id":"","url":"https://api.github.com/users/korrio","html_url":"https://github.com/korrio","followers_url":"https://api.github.com/users/korrio/followers","following_url":"https://api.github.com/users/korrio/following{/other_user}","gists_url":"https://api.github.com/users/korrio/gists{/gist_id}","starred_url":"https://api.github.com/users/korrio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korrio/subscriptions","organizations_url":"https://api.github.com/users/korrio/orgs","repos_url":"https://api.github.com/users/korrio/repos","events_url":"https://api.github.com/users/korrio/events{/privacy}","received_events_url":"https://api.github.com/users/korrio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-03T07:56:54Z","updated_at":"2016-08-30T13:21:16Z","closed_at":null,"body":"my card.xml\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<android.support.v7.widget.CardView\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:card_view=\"http://schemas.android.com/apk/res-auto\"\r\n    android:layout_height=\"match_parent\"\r\n    android:layout_width=\"match_parent\"\r\n    card_view:cardCornerRadius=\"@dimen/card_corner_radius\"\r\n    card_view:cardElevation=\"@dimen/elevation_large\">\r\n\r\n    <RelativeLayout\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\">\r\n        <ImageView\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:id=\"@+id/ivCard\"\r\n            android:src=\"@drawable/placeholder\" />\r\n        <TextView\r\n            android:id=\"@+id/textViewCard\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:gravity=\"center\"\r\n            android:textSize=\"44sp\"\r\n            android:text=\"@string/dummy_text\"/>\r\n\r\n    </RelativeLayout>\r\n\r\n\r\n\r\n</android.support.v7.widget.CardView>\r\n```\r\nmy adapter\r\n\r\n```\r\n...\r\n@Override\r\n        public View getView(final int position, View convertView, ViewGroup parent) {\r\n            holder = null;\r\n            if (convertView == null) {\r\n                holder = new ViewHolder();\r\n                convertView = getLayoutInflater().inflate(R.layout.card, parent, false);\r\n                convertView.setTag(holder);\r\n            } else {\r\n                holder = (ViewHolder) convertView.getTag();\r\n            }\r\n\r\n            holder.ivCard = (ImageView) convertView.findViewById(R.id.ivCard);\r\n            Picasso.with(mContext).load(mData.get(position).getUrl()).resize(480, 480).centerCrop().into(holder.ivCard);\r\n            Log.e(\"555\",mData.get(position).getUrl());\r\n\r\n            holder.tvCard = (TextView) convertView.findViewById(R.id.textViewCard);\r\n            holder.tvCard.setText(mData.get(position).getWho());\r\n\r\n            return convertView;\r\n        }\r\n\r\n        public class ViewHolder {\r\n            ImageView ivCard;\r\n            TextView tvCard;\r\n        }\r\n...\r\n```\r\n\r\nit only display the text (from the internet but no luck with ImageView to display image (from URL) via Picasso)\r\n"},"comment":{"url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/comments/243436249","html_url":"https://github.com/flschweiger/SwipeStack/issues/6#issuecomment-243436249","issue_url":"https://api.github.com/repos/flschweiger/SwipeStack/issues/6","id":243436249,"user":{"login":"CreaRo","id":10224559,"avatar_url":"https://avatars.githubusercontent.com/u/10224559?v=3","gravatar_id":"","url":"https://api.github.com/users/CreaRo","html_url":"https://github.com/CreaRo","followers_url":"https://api.github.com/users/CreaRo/followers","following_url":"https://api.github.com/users/CreaRo/following{/other_user}","gists_url":"https://api.github.com/users/CreaRo/gists{/gist_id}","starred_url":"https://api.github.com/users/CreaRo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreaRo/subscriptions","organizations_url":"https://api.github.com/users/CreaRo/orgs","repos_url":"https://api.github.com/users/CreaRo/repos","events_url":"https://api.github.com/users/CreaRo/events{/privacy}","received_events_url":"https://api.github.com/users/CreaRo/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T13:21:16Z","updated_at":"2016-08-30T13:21:16Z","body":"Strange. I'm Picasso and it works. Is the swipe stack taking the entire screen space?\r\nAlong with setting wrap_content in height and width of imageview, try and set and minimum height and width in the imageview. If it displays the image (or part of it), that might mean the swipe stack hasn't inflated to the size required by the imageview."}}
{"actor":{"display_login":"CreaRo"}}