Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>ActionBarSherlock is now kind of a "best practice" you are right in using it.</p> <p><strong>Create your Menu in the folder with the same name for example :</strong></p> <p></p> <pre><code>&lt;item android:id="@+id/search" android:actionViewClass="com.actionbarsherlock.widget.SearchView" android:icon="@android:drawable/ic_menu_search" android:showAsAction="always|collapseActionView" android:title="@string/menu_search"/&gt; &lt;item android:id="@+id/menu_filtre" android:orderInCategory="100" android:showAsAction="always|collapseActionView" android:title="@string/menu_filtre"/&gt; &lt;item android:id="@+id/menu_clear" android:orderInCategory="100" android:showAsAction="always|collapseActionView" android:title="@string/menu_clear"/&gt; </code></pre> <p></p> <p><strong>then in your MainActivity for example :</strong></p> <pre><code>@Override public boolean onPrepareOptionsMenu(Menu menu) { menu.clear(); switch ((int) _viewPager.getCurrentItem()) { case 0: getSupportMenuInflater().inflate(R.menu.menu, menu); break; } return super.onPrepareOptionsMenu(menu); } </code></pre> <p><strong>And to finish :</strong></p> <pre><code>ActionBar bar = getSupportActionBar(); bar.setTitle(R.string.titre_abs); bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); </code></pre> <p>For the installation take a look here <a href="http://actionbarsherlock.com/" rel="nofollow">http://actionbarsherlock.com/</a></p> <p>For creating themes here <a href="http://jgilfelt.github.io/android-actionbarstylegenerator/#name=example&amp;compat=holo&amp;theme=light&amp;actionbarstyle=solid&amp;backColor=E4E4E4%2C100&amp;secondaryColor=D6D6D6%2C100&amp;tertiaryColor=F2F2F2%2C100&amp;accentColor=33B5E5%2C100" rel="nofollow">http://jgilfelt.github.io/android-actionbarstylegenerator/#name=example&amp;compat=holo&amp;theme=light&amp;actionbarstyle=solid&amp;backColor=E4E4E4%2C100&amp;secondaryColor=D6D6D6%2C100&amp;tertiaryColor=F2F2F2%2C100&amp;accentColor=33B5E5%2C100</a></p> <p>if you need more just ask</p> <p><strong>good luck</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload