{"action":"created","issue":{"url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/1","labels_url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/1/comments","events_url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/1/events","html_url":"https://github.com/danilao/fragments-viewpager-example/issues/1","id":34746202,"number":1,"title":"Cannot customize menu actionbar item for specific fragment","user":{"login":"aimanbaharum","id":3680125,"avatar_url":"https://avatars.githubusercontent.com/u/3680125?v=3","gravatar_id":"","url":"https://api.github.com/users/aimanbaharum","html_url":"https://github.com/aimanbaharum","followers_url":"https://api.github.com/users/aimanbaharum/followers","following_url":"https://api.github.com/users/aimanbaharum/following{/other_user}","gists_url":"https://api.github.com/users/aimanbaharum/gists{/gist_id}","starred_url":"https://api.github.com/users/aimanbaharum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aimanbaharum/subscriptions","organizations_url":"https://api.github.com/users/aimanbaharum/orgs","repos_url":"https://api.github.com/users/aimanbaharum/repos","events_url":"https://api.github.com/users/aimanbaharum/events{/privacy}","received_events_url":"https://api.github.com/users/aimanbaharum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-02T04:57:09Z","updated_at":"2015-05-27T04:14:00Z","closed_at":null,"body":"Hey, I just stumbled upon this example that I might wanna use in my project.\r\n\r\nI've tried it but I can't seem to have customizable actionbar item for each fragment that I want. For example, in Tab 1, I want Item A, in Tab 2, Item A needs to be hidden and Item B is shown. However, this is not the case. All of the items are shown when I slide to each tabs.\r\n\r\nI've used `setHasOptionsMenu(true)` to each fragments but fails. Also, `onPrepareOptionsMenu` cannot be done. I hope for a fix or hack here.\r\n\r\nThanks for the trick though.\r\n\r\n**Edit:** I'm using this in a ViewPager tabs.\r\n**Edit 2:** tl;dr And I need to use the actionbar menu item for each fragment."},"comment":{"url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/comments/105748805","html_url":"https://github.com/danilao/fragments-viewpager-example/issues/1#issuecomment-105748805","issue_url":"https://api.github.com/repos/danilao/fragments-viewpager-example/issues/1","id":105748805,"user":{"login":"kevinstyle","id":8855408,"avatar_url":"https://avatars.githubusercontent.com/u/8855408?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinstyle","html_url":"https://github.com/kevinstyle","followers_url":"https://api.github.com/users/kevinstyle/followers","following_url":"https://api.github.com/users/kevinstyle/following{/other_user}","gists_url":"https://api.github.com/users/kevinstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinstyle/subscriptions","organizations_url":"https://api.github.com/users/kevinstyle/orgs","repos_url":"https://api.github.com/users/kevinstyle/repos","events_url":"https://api.github.com/users/kevinstyle/events{/privacy}","received_events_url":"https://api.github.com/users/kevinstyle/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T04:14:00Z","updated_at":"2015-05-27T04:14:00Z","body":"Hi, ppamorim\r\ndo u mean https://github.com/ogaclejapan/SmartTabLayout ?"}}