title: How to set dynamic created action bar to bottom?
body: <p>To create a navigation bar, I have dynamically create an action bar:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      ActionBar actionBar = getActionBar();
  }
  </code></pre>
  
  <p>And add tabs one by one:</p>
  
  <pre><code>    // Create first Tab
      tab = actionBar.newTab().setTabListener(new FragmentsTab1());
      // Create your own custom icon
      tab.setIcon(R.drawable.tab1_hdpi);
      actionBar.addTab(tab);
  </code></pre>
  
  <p>The problem is , the action bar is at the top by default. How can I placed it at the bottom? I found <code>layout_below</code> may be suitable for this case . However , as it generates dynamically, how can I know its ID? Thanks a lot.</p>
  
  <p>Edited:</p>
  
  <p>After adding split option, it doesn't make any changes, is it due to my action bar is dynamically generated?</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  android:uiOptions="splitActionBarWhenNarrow"
  package="com.example.tabtest"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  </code></pre>
  
  <p>And</p>
  
  <pre><code>       &lt;activity
          android:name="com.example.tabtest.MainActivity"
          android:uiOptions="splitActionBarWhenNarrow"
          android:label="@string/app_name" &gt;
  </code></pre>