{"action":"closed","number":54,"pull_request":{"url":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54","id":41244073,"html_url":"https://github.com/carlonzo/StikkyHeader/pull/54","diff_url":"https://github.com/carlonzo/StikkyHeader/pull/54.diff","patch_url":"https://github.com/carlonzo/StikkyHeader/pull/54.patch","issue_url":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/54","number":54,"state":"closed","locked":false,"title":"Added header and item decoration accessors","user":{"login":"pawegio","id":876573,"avatar_url":"https://avatars.githubusercontent.com/u/876573?v=3","gravatar_id":"","url":"https://api.github.com/users/pawegio","html_url":"https://github.com/pawegio","followers_url":"https://api.github.com/users/pawegio/followers","following_url":"https://api.github.com/users/pawegio/following{/other_user}","gists_url":"https://api.github.com/users/pawegio/gists{/gist_id}","starred_url":"https://api.github.com/users/pawegio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawegio/subscriptions","organizations_url":"https://api.github.com/users/pawegio/orgs","repos_url":"https://api.github.com/users/pawegio/repos","events_url":"https://api.github.com/users/pawegio/events{/privacy}","received_events_url":"https://api.github.com/users/pawegio/received_events","type":"User","site_admin":false},"body":"I added accessors in case to remove & add again header on action expand & hide:\r\n```\r\n MenuItemCompat.setOnActionExpandListener(searchMenuItem, object : MenuItemCompat.OnActionExpandListener {\r\n            override fun onMenuItemActionExpand(item: MenuItem): Boolean {\r\n                stickyHeader.getHeader().setVisibility(View.GONE)\r\n                recyclerView.removeItemDecoration(stickyHeader.getItemDecoration())\r\n                return true\r\n            }\r\n\r\n            override fun onMenuItemActionCollapse(item: MenuItem): Boolean {\r\n                stickyHeader.getHeader().setVisibility(View.VISIBLE)\r\n                recyclerView.addItemDecoration(stickyHeader.getItemDecoration())\r\n                return true\r\n            }\r\n\r\n        }) \r\n```","created_at":"2015-07-30T15:01:53Z","updated_at":"2015-09-02T08:34:46Z","closed_at":"2015-09-02T08:34:46Z","merged_at":null,"merge_commit_sha":"10a9c469c9c576cc0b03e804ec4c49bd488b35dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54/commits","review_comments_url":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54/comments","review_comment_url":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/54/comments","statuses_url":"https://api.github.com/repos/carlonzo/StikkyHeader/statuses/b2bd18633a9e9f73d3d3b0fcb5bf0ffae834637b","head":{"label":"pawegio:develop","ref":"develop","sha":"b2bd18633a9e9f73d3d3b0fcb5bf0ffae834637b","user":{"login":"pawegio","id":876573,"avatar_url":"https://avatars.githubusercontent.com/u/876573?v=3","gravatar_id":"","url":"https://api.github.com/users/pawegio","html_url":"https://github.com/pawegio","followers_url":"https://api.github.com/users/pawegio/followers","following_url":"https://api.github.com/users/pawegio/following{/other_user}","gists_url":"https://api.github.com/users/pawegio/gists{/gist_id}","starred_url":"https://api.github.com/users/pawegio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawegio/subscriptions","organizations_url":"https://api.github.com/users/pawegio/orgs","repos_url":"https://api.github.com/users/pawegio/repos","events_url":"https://api.github.com/users/pawegio/events{/privacy}","received_events_url":"https://api.github.com/users/pawegio/received_events","type":"User","site_admin":false},"repo":{"id":39953105,"name":"StikkyHeader","full_name":"pawegio/StikkyHeader","owner":{"login":"pawegio","id":876573,"avatar_url":"https://avatars.githubusercontent.com/u/876573?v=3","gravatar_id":"","url":"https://api.github.com/users/pawegio","html_url":"https://github.com/pawegio","followers_url":"https://api.github.com/users/pawegio/followers","following_url":"https://api.github.com/users/pawegio/following{/other_user}","gists_url":"https://api.github.com/users/pawegio/gists{/gist_id}","starred_url":"https://api.github.com/users/pawegio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawegio/subscriptions","organizations_url":"https://api.github.com/users/pawegio/orgs","repos_url":"https://api.github.com/users/pawegio/repos","events_url":"https://api.github.com/users/pawegio/events{/privacy}","received_events_url":"https://api.github.com/users/pawegio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pawegio/StikkyHeader","description":"This is a very simple library for Android that allows you to stick an header to a scrollable view and easily apply animation to it","fork":true,"url":"https://api.github.com/repos/pawegio/StikkyHeader","forks_url":"https://api.github.com/repos/pawegio/StikkyHeader/forks","keys_url":"https://api.github.com/repos/pawegio/StikkyHeader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pawegio/StikkyHeader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pawegio/StikkyHeader/teams","hooks_url":"https://api.github.com/repos/pawegio/StikkyHeader/hooks","issue_events_url":"https://api.github.com/repos/pawegio/StikkyHeader/issues/events{/number}","events_url":"https://api.github.com/repos/pawegio/StikkyHeader/events","assignees_url":"https://api.github.com/repos/pawegio/StikkyHeader/assignees{/user}","branches_url":"https://api.github.com/repos/pawegio/StikkyHeader/branches{/branch}","tags_url":"https://api.github.com/repos/pawegio/StikkyHeader/tags","blobs_url":"https://api.github.com/repos/pawegio/StikkyHeader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pawegio/StikkyHeader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pawegio/StikkyHeader/git/refs{/sha}","trees_url":"https://api.github.com/repos/pawegio/StikkyHeader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pawegio/StikkyHeader/statuses/{sha}","languages_url":"https://api.github.com/repos/pawegio/StikkyHeader/languages","stargazers_url":"https://api.github.com/repos/pawegio/StikkyHeader/stargazers","contributors_url":"https://api.github.com/repos/pawegio/StikkyHeader/contributors","subscribers_url":"https://api.github.com/repos/pawegio/StikkyHeader/subscribers","subscription_url":"https://api.github.com/repos/pawegio/StikkyHeader/subscription","commits_url":"https://api.github.com/repos/pawegio/StikkyHeader/commits{/sha}","git_commits_url":"https://api.github.com/repos/pawegio/StikkyHeader/git/commits{/sha}","comments_url":"https://api.github.com/repos/pawegio/StikkyHeader/comments{/number}","issue_comment_url":"https://api.github.com/repos/pawegio/StikkyHeader/issues/comments{/number}","contents_url":"https://api.github.com/repos/pawegio/StikkyHeader/contents/{+path}","compare_url":"https://api.github.com/repos/pawegio/StikkyHeader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pawegio/StikkyHeader/merges","archive_url":"https://api.github.com/repos/pawegio/StikkyHeader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pawegio/StikkyHeader/downloads","issues_url":"https://api.github.com/repos/pawegio/StikkyHeader/issues{/number}","pulls_url":"https://api.github.com/repos/pawegio/StikkyHeader/pulls{/number}","milestones_url":"https://api.github.com/repos/pawegio/StikkyHeader/milestones{/number}","notifications_url":"https://api.github.com/repos/pawegio/StikkyHeader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pawegio/StikkyHeader/labels{/name}","releases_url":"https://api.github.com/repos/pawegio/StikkyHeader/releases{/id}","created_at":"2015-07-30T13:51:43Z","updated_at":"2015-07-30T13:51:43Z","pushed_at":"2015-07-30T14:38:32Z","git_url":"git://github.com/pawegio/StikkyHeader.git","ssh_url":"git@github.com:pawegio/StikkyHeader.git","clone_url":"https://github.com/pawegio/StikkyHeader.git","svn_url":"https://github.com/pawegio/StikkyHeader","homepage":"","size":6769,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"carlonzo:develop","ref":"develop","sha":"7e43730de69438795ee38cab86b40b7655ab7604","user":{"login":"carlonzo","id":2102422,"avatar_url":"https://avatars.githubusercontent.com/u/2102422?v=3","gravatar_id":"","url":"https://api.github.com/users/carlonzo","html_url":"https://github.com/carlonzo","followers_url":"https://api.github.com/users/carlonzo/followers","following_url":"https://api.github.com/users/carlonzo/following{/other_user}","gists_url":"https://api.github.com/users/carlonzo/gists{/gist_id}","starred_url":"https://api.github.com/users/carlonzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlonzo/subscriptions","organizations_url":"https://api.github.com/users/carlonzo/orgs","repos_url":"https://api.github.com/users/carlonzo/repos","events_url":"https://api.github.com/users/carlonzo/events{/privacy}","received_events_url":"https://api.github.com/users/carlonzo/received_events","type":"User","site_admin":false},"repo":{"id":23773782,"name":"StikkyHeader","full_name":"carlonzo/StikkyHeader","owner":{"login":"carlonzo","id":2102422,"avatar_url":"https://avatars.githubusercontent.com/u/2102422?v=3","gravatar_id":"","url":"https://api.github.com/users/carlonzo","html_url":"https://github.com/carlonzo","followers_url":"https://api.github.com/users/carlonzo/followers","following_url":"https://api.github.com/users/carlonzo/following{/other_user}","gists_url":"https://api.github.com/users/carlonzo/gists{/gist_id}","starred_url":"https://api.github.com/users/carlonzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlonzo/subscriptions","organizations_url":"https://api.github.com/users/carlonzo/orgs","repos_url":"https://api.github.com/users/carlonzo/repos","events_url":"https://api.github.com/users/carlonzo/events{/privacy}","received_events_url":"https://api.github.com/users/carlonzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlonzo/StikkyHeader","description":"This is a very simple library for Android that allows you to stick an header to a scrollable view and easily apply animation to it","fork":false,"url":"https://api.github.com/repos/carlonzo/StikkyHeader","forks_url":"https://api.github.com/repos/carlonzo/StikkyHeader/forks","keys_url":"https://api.github.com/repos/carlonzo/StikkyHeader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlonzo/StikkyHeader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlonzo/StikkyHeader/teams","hooks_url":"https://api.github.com/repos/carlonzo/StikkyHeader/hooks","issue_events_url":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/events{/number}","events_url":"https://api.github.com/repos/carlonzo/StikkyHeader/events","assignees_url":"https://api.github.com/repos/carlonzo/StikkyHeader/assignees{/user}","branches_url":"https://api.github.com/repos/carlonzo/StikkyHeader/branches{/branch}","tags_url":"https://api.github.com/repos/carlonzo/StikkyHeader/tags","blobs_url":"https://api.github.com/repos/carlonzo/StikkyHeader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlonzo/StikkyHeader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlonzo/StikkyHeader/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlonzo/StikkyHeader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlonzo/StikkyHeader/statuses/{sha}","languages_url":"https://api.github.com/repos/carlonzo/StikkyHeader/languages","stargazers_url":"https://api.github.com/repos/carlonzo/StikkyHeader/stargazers","contributors_url":"https://api.github.com/repos/carlonzo/StikkyHeader/contributors","subscribers_url":"https://api.github.com/repos/carlonzo/StikkyHeader/subscribers","subscription_url":"https://api.github.com/repos/carlonzo/StikkyHeader/subscription","commits_url":"https://api.github.com/repos/carlonzo/StikkyHeader/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlonzo/StikkyHeader/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlonzo/StikkyHeader/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/comments{/number}","contents_url":"https://api.github.com/repos/carlonzo/StikkyHeader/contents/{+path}","compare_url":"https://api.github.com/repos/carlonzo/StikkyHeader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlonzo/StikkyHeader/merges","archive_url":"https://api.github.com/repos/carlonzo/StikkyHeader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlonzo/StikkyHeader/downloads","issues_url":"https://api.github.com/repos/carlonzo/StikkyHeader/issues{/number}","pulls_url":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls{/number}","milestones_url":"https://api.github.com/repos/carlonzo/StikkyHeader/milestones{/number}","notifications_url":"https://api.github.com/repos/carlonzo/StikkyHeader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlonzo/StikkyHeader/labels{/name}","releases_url":"https://api.github.com/repos/carlonzo/StikkyHeader/releases{/id}","created_at":"2014-09-07T23:29:09Z","updated_at":"2015-09-02T07:04:12Z","pushed_at":"2015-09-02T00:04:47Z","git_url":"git://github.com/carlonzo/StikkyHeader.git","ssh_url":"git@github.com:carlonzo/StikkyHeader.git","clone_url":"https://github.com/carlonzo/StikkyHeader.git","svn_url":"https://github.com/carlonzo/StikkyHeader","homepage":"","size":7300,"stargazers_count":555,"watchers_count":555,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":116,"mirror_url":null,"open_issues_count":5,"forks":116,"open_issues":5,"watchers":555,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54"},"html":{"href":"https://github.com/carlonzo/StikkyHeader/pull/54"},"issue":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/54"},"comments":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/carlonzo/StikkyHeader/statuses/b2bd18633a9e9f73d3d3b0fcb5bf0ffae834637b"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":18,"deletions":7,"changed_files":2}}