I need to display either the "reload" button in the actionBar or the "home" button, depending on the current activation. I will illustrate:
How to add a separate home button - learned (using actionBarSherlock) It remains to figure out how to show / hide the reload button. It is impossible to do this in onCreateOptionsMenu just by getting the desired button by id - an error crashes. I have /menu/menu.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/reload_button" android:icon="@android:drawable/ic_menu_rotate"> </item>
And another question is how to make the text be in the middle of actionBar.