title: Custom ActionBar back click does not works
body: <p>I'm created an android app in Eclipse. I tried to create custom action bar and using <strong>setDisplayShowHomeEnabled</strong> from <strong>getActionbar</strong> method to retrieve the icon actually. But then I setIcon to some kind of back_arrow image to look more like back arrow. I'm using <strong>onOptionsItemSelected</strong> to click my back button in customize action bar, but doesn't work for me. Switch case with <strong>android.R.id.home</strong>.</p>
  
  <p><strong>Customize action bar in FragmentActivity:</strong></p>
  
  <pre><code>getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
  getActionBar().setCustomView(R.layout.actionbar);
  </code></pre>
  
  <p><strong>BackButton action bar in Fragment:</strong></p>
  
  <pre><code>getActivity().getActionBar().setDisplayHomeAsUpEnabled(false);
  getActivity().getActionBar().setDisplayShowHomeEnabled(true);
  getActivity().getActionBar().setHomeButtonEnabled(true);
  getActivity().getActionBar().setIcon(getResources().getDrawable(R.drawable.left_back));
  
  switch(item.getItemId()){
    case android.R.id.home:
         return true;
  }
  </code></pre>