{"action":"created","issue":{"url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/330","labels_url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/330/comments","events_url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/330/events","html_url":"https://github.com/emilsjolander/StickyListHeaders/issues/330","id":42640183,"number":330,"title":"Use StickyListHeaders with FloatingActionButton?","user":{"login":"pbouliou","id":3389453,"avatar_url":"https://avatars.githubusercontent.com/u/3389453?v=3","gravatar_id":"","url":"https://api.github.com/users/pbouliou","html_url":"https://github.com/pbouliou","followers_url":"https://api.github.com/users/pbouliou/followers","following_url":"https://api.github.com/users/pbouliou/following{/other_user}","gists_url":"https://api.github.com/users/pbouliou/gists{/gist_id}","starred_url":"https://api.github.com/users/pbouliou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbouliou/subscriptions","organizations_url":"https://api.github.com/users/pbouliou/orgs","repos_url":"https://api.github.com/users/pbouliou/repos","events_url":"https://api.github.com/users/pbouliou/events{/privacy}","received_events_url":"https://api.github.com/users/pbouliou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-12T15:23:09Z","updated_at":"2015-04-10T21:46:45Z","closed_at":"2014-09-12T16:41:27Z","body":"Hi,\r\n\r\nI'm trying to use stickyListHeaders with FaizMalkani/FloatingActionButton lib. But as the floating action button bind itself as a scroll listener to the listview, then headers are no more \"sticky\" ...\r\nAny solutions?"},"comment":{"url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/comments/91702160","html_url":"https://github.com/emilsjolander/StickyListHeaders/issues/330#issuecomment-91702160","issue_url":"https://api.github.com/repos/emilsjolander/StickyListHeaders/issues/330","id":91702160,"user":{"login":"nbau21","id":3990229,"avatar_url":"https://avatars.githubusercontent.com/u/3990229?v=3","gravatar_id":"","url":"https://api.github.com/users/nbau21","html_url":"https://github.com/nbau21","followers_url":"https://api.github.com/users/nbau21/followers","following_url":"https://api.github.com/users/nbau21/following{/other_user}","gists_url":"https://api.github.com/users/nbau21/gists{/gist_id}","starred_url":"https://api.github.com/users/nbau21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbau21/subscriptions","organizations_url":"https://api.github.com/users/nbau21/orgs","repos_url":"https://api.github.com/users/nbau21/repos","events_url":"https://api.github.com/users/nbau21/events{/privacy}","received_events_url":"https://api.github.com/users/nbau21/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T21:46:45Z","updated_at":"2015-04-10T21:46:45Z","body":"Late answer, but useful to others! Basically hide the fab if you hit the bottom of the list, and show if not.\r\n\r\n        myList.setOnScrollListener(new AbsListView.OnScrollListener() {\r\n            @Override\r\n            public void onScrollStateChanged(AbsListView view, int scrollState) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\r\n                int lastInScreen = firstVisibleItem + visibleItemCount;\r\n                if (lastInScreen == totalItemCount) {\r\n                    fab.hide(true);\r\n                } else {\r\n                    fab.show(true);\r\n                }\r\n            }\r\n        });\r\n"}}