{"action":"created","issue":{"url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/97","labels_url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/97/comments","events_url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/97/events","html_url":"https://github.com/ManuelPeinado/FadingActionBar/issues/97","id":52806320,"number":97,"title":"Getting error at initActionBar","user":{"login":"sgkhode","id":8581889,"avatar_url":"https://avatars.githubusercontent.com/u/8581889?v=3","gravatar_id":"","url":"https://api.github.com/users/sgkhode","html_url":"https://github.com/sgkhode","followers_url":"https://api.github.com/users/sgkhode/followers","following_url":"https://api.github.com/users/sgkhode/following{/other_user}","gists_url":"https://api.github.com/users/sgkhode/gists{/gist_id}","starred_url":"https://api.github.com/users/sgkhode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgkhode/subscriptions","organizations_url":"https://api.github.com/users/sgkhode/orgs","repos_url":"https://api.github.com/users/sgkhode/repos","events_url":"https://api.github.com/users/sgkhode/events{/privacy}","received_events_url":"https://api.github.com/users/sgkhode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-24T09:09:45Z","updated_at":"2015-07-24T17:38:42Z","closed_at":null,"body":"Hello,\r\nHere is my code, but I am getting error at line initActionBar\r\n   package com.krishinomy.farmweather;\r\n\r\nimport android.support.v7.app.ActionBarActivity;\r\nimport android.os.Bundle;\r\nimport android.view.Menu;\r\nimport android.view.MenuItem;\r\nimport android.widget.ArrayAdapter;\r\nimport android.widget.ListView;\r\n\r\nimport com.manuelpeinado.fadingactionbar.FadingActionBarHelper;\r\n\r\npublic class WeatherDetailsActivity extends ActionBarActivity\r\n{\r\n    \r\n    @Override\r\n    protected void onCreate( Bundle savedInstanceState )\r\n    {\r\n        super.onCreate(savedInstanceState);\r\n        \r\n        FadingActionBarHelper helper = new FadingActionBarHelper().actionBarBackground(R.drawable.ab_background)\r\n                        .headerLayout(R.layout.weather_detail_header)\r\n                        .contentLayout(R.layout.weather_detail_content)\r\n                        .headerOverlayLayout(R.layout.weather_detail_header_overlay);\r\n        setContentView(helper.createView(this));\r\n        helper.initActionBar(this);\r\n        ListView listView = (ListView) findViewById(android.R.id.list);\r\n        String[] items = loadItems();\r\n        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);\r\n        listView.setAdapter(adapter);\r\n    }\r\n    \r\n    private String[] loadItems()\r\n    {\r\n        \r\n        String[] countries = new String[] { \"String\", \"String\" };\r\n        return countries;\r\n    }\r\n    \r\n    @Override\r\n    public boolean onCreateOptionsMenu( Menu menu )\r\n    {\r\n        // Inflate the menu; this adds items to the action bar if it is present.\r\n        getMenuInflater().inflate(R.menu.menu_weather_details, menu);\r\n        return true;\r\n    }\r\n    \r\n    @Override\r\n    public boolean onOptionsItemSelected( MenuItem item )\r\n    {\r\n        // Handle action bar item clicks here. The action bar will\r\n        // automatically handle clicks on the Home/Up button, so long\r\n        // as you specify a parent activity in AndroidManifest.xml.\r\n        int id = item.getItemId();\r\n        \r\n        //noinspection SimplifiableIfStatement\r\n        if (id == R.id.action_settings)\r\n        {\r\n            return true;\r\n        }\r\n        \r\n        return super.onOptionsItemSelected(item);\r\n    }\r\n}\r\n\r\n\r\ncan anyone guide me what could be issue?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/comments/124592848","html_url":"https://github.com/ManuelPeinado/FadingActionBar/issues/97#issuecomment-124592848","issue_url":"https://api.github.com/repos/ManuelPeinado/FadingActionBar/issues/97","id":124592848,"user":{"login":"arkangelx","id":559233,"avatar_url":"https://avatars.githubusercontent.com/u/559233?v=3","gravatar_id":"","url":"https://api.github.com/users/arkangelx","html_url":"https://github.com/arkangelx","followers_url":"https://api.github.com/users/arkangelx/followers","following_url":"https://api.github.com/users/arkangelx/following{/other_user}","gists_url":"https://api.github.com/users/arkangelx/gists{/gist_id}","starred_url":"https://api.github.com/users/arkangelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkangelx/subscriptions","organizations_url":"https://api.github.com/users/arkangelx/orgs","repos_url":"https://api.github.com/users/arkangelx/repos","events_url":"https://api.github.com/users/arkangelx/events{/privacy}","received_events_url":"https://api.github.com/users/arkangelx/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T17:38:42Z","updated_at":"2015-07-24T17:38:42Z","body":"I am trying to add some text to header but the headerOverlayLayout doesn't work. Has anyone done this?"}}