{"action":"opened","issue":{"url":"https://api.github.com/repos/codepath/android_guides/issues/76","labels_url":"https://api.github.com/repos/codepath/android_guides/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/codepath/android_guides/issues/76/comments","events_url":"https://api.github.com/repos/codepath/android_guides/issues/76/events","html_url":"https://github.com/codepath/android_guides/issues/76","id":77819346,"number":76,"title":"Where should one populate / render the fragment view","user":{"login":"AlGantori","id":11699920,"avatar_url":"https://avatars.githubusercontent.com/u/11699920?v=3","gravatar_id":"","url":"https://api.github.com/users/AlGantori","html_url":"https://github.com/AlGantori","followers_url":"https://api.github.com/users/AlGantori/followers","following_url":"https://api.github.com/users/AlGantori/following{/other_user}","gists_url":"https://api.github.com/users/AlGantori/gists{/gist_id}","starred_url":"https://api.github.com/users/AlGantori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlGantori/subscriptions","organizations_url":"https://api.github.com/users/AlGantori/orgs","repos_url":"https://api.github.com/users/AlGantori/repos","events_url":"https://api.github.com/users/AlGantori/events{/privacy}","received_events_url":"https://api.github.com/users/AlGantori/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T21:52:32Z","updated_at":"2015-05-18T21:52:32Z","closed_at":null,"body":"In your article \"Creating and Using Fragments\" I believe there should be a section eg. \"Filling/Drawing the Fragment\" to make it clear where I should populate the content of the fragment, is it in the OnCreateView() after inflate and just prior to \"return view ;\"\r\n\r\n\"view\" seems also to be a member of the whole class so it could be populated from any other member like onResume()\r\n\r\n(2) I was surprised to not see any topics in the home section about \"Activities\" a fundamental Android topic yet there is a section about \"Fragments\".\r\nhttps://github.com/codepath/android_guides/wiki\r\n\r\n(3)\r\nMy issue is actually with using Fragments with PagerView where I am loading ~20-40 images from the device to be paged thru and running out of memory.  I've tried using the FragmentStatePageAdapter for my adapter (even though I don't believe my \"images/slides\" have state but without any better result.\r\nPerhaps is my bitmap sampling helper, I don't know.  I wanted to ensure I am using the PagerView / Adapter / Fragments correctly and the concept still tortures me :)\r\n\r\nThank for trying to address the issue with sites like StackOverflow and endless goose chases and otherwise simple concepts lacking proper concise documentation and straight to the point code examples.\r\n(I posted an issue here because I did not see a way to attach it directly to your article, perhaps this is limitation of GitHub not designed to support this kind of crowd source documentation)."}}