{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/42","repository_url":"https://api.github.com/repos/afollestad/sectioned-recyclerview","labels_url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/42/comments","events_url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/42/events","html_url":"https://github.com/afollestad/sectioned-recyclerview/issues/42","id":226322736,"number":42,"title":"I need [items][header][items]. Possible?","user":{"login":"Leonidos","id":378462,"avatar_url":"https://avatars1.githubusercontent.com/u/378462?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidos","html_url":"https://github.com/Leonidos","followers_url":"https://api.github.com/users/Leonidos/followers","following_url":"https://api.github.com/users/Leonidos/following{/other_user}","gists_url":"https://api.github.com/users/Leonidos/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidos/subscriptions","organizations_url":"https://api.github.com/users/Leonidos/orgs","repos_url":"https://api.github.com/users/Leonidos/repos","events_url":"https://api.github.com/users/Leonidos/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-04T15:38:51Z","updated_at":"2017-06-09T17:55:23Z","closed_at":"2017-06-09T17:55:23Z","body":"Thank you for your library. I've been using it for a while with no issues but now I need to implement the following layout:\r\n\r\n```\r\n[item]\r\n[item]\r\n[section_header]\r\n[item]\r\n[item]\r\n```\r\n\r\nor\r\n\r\n```\r\n[item][item][item]\r\n[item][item][item]\r\n[section_header]\r\n[item][item][item]\r\n[item][item][item]\r\n```\r\n\r\nIs it possible? I checked sources and did't find a good way. For now I use negative layout margin top for RecyclerView to hide first header )\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/comments/307457004","html_url":"https://github.com/afollestad/sectioned-recyclerview/issues/42#issuecomment-307457004","issue_url":"https://api.github.com/repos/afollestad/sectioned-recyclerview/issues/42","id":307457004,"user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars3.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T17:55:23Z","updated_at":"2017-06-09T17:55:23Z","body":"Since this is a pretty niche thing, I don't think there should be an explicit option for it.\r\n\r\nThe best solution would be to return a different view type for the first item in `getItemViewType(int section, int relativePosition, int absolutePosition)`. From there, you can return an empty view in `onCreateViewHolder` and ignore it in `onBindViewHolder`. You'd then have an empty view that takes up no height in the first position."}}
{"actor":{"display_login":"afollestad"}}