Title: why the actionBar is placed at the bottom?
Tags: android;android-actionbar;android-actionbar-compat;android-actionbaractivity
Question: I was following some tutorials to learn how to create an activity with ActionBar, I followed the tutorial literally, but in the end, I found that the action bar is unlike the action bar resulted in the tutorial, mine is placed at the bottom of  activity and appears only when I press the optionsMenueButton, while the result from the tutorial is at the top. And my activity extends ActionBarActivity Any idea why that happens.
Java_Code:
public class ActionBarActivityTest00 extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_action_bar_activity_test00);
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.action_bar_activity_test00, menu);
return true;
xml_file:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.actionbaractivitytest.ActionBarActivityTest00" &gt;
<item
android:id="@+id/action_search"
android:orderInCategory="100"
android:showAsAction="always"
android:icon="@drawable/search"
android:title="Search"/&gt;
<item
android:id="@+id/action_copy"
android:orderInCategory="100"
android:showAsAction="always"
android:icon="@drawable/copy"
android:title="Copy"/&gt;
<item
android:id="@+id/action_share"
android:orderInCategory="100"
android:showAsAction="always"
android:icon="@drawable/share"
android:title="Share"/&gt;
Comment: Can you post actual code? And perhaps a link to the tutorial you were following?

Comment: Shouldn't your return be "return super.onCreateOptionsMenu(menu);" for starters?

Comment: @Blackunknown please find the code posted, and unfortunately i lost tracking the tutorial's website

Comment: @Blackunknown actually i,m not sure because this method is auto generated

Comment: If android:uiOptions="splitActionBarWhenNarrow"  is specified in the manifest, part of the actionbar will show up on the bottom.  I'm not sure about why it would appear only when the menu button is pressed.  Try the emulator or another device to see if the behavior is consistent.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 5, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:06/17/14', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><android-actionbar><android-actionbar-compat><android-actionbaractivity>', 'Title': 'why the actionBar is placed at the bottom?', 'ViewCount': 50, 'id': 24266030, 'user_AboutMe': '', 'user_AccountId': 1141484.0, 'user_DisplayName': 'user2121', 'user_Reputation': 7209.0, 'user_Views': 1108.0, 'user_id': 3732958.0}}