Note that there are some explanatory texts on larger screens.

plurals
  1. POActionBarSherlock collapseActionView
    primarykey
    data
    text
    <p>I'm having a problem when I try to set one item in my actionbar as always visible and 4 more icons as dropdown items with the following layout:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;item android:id="@+id/search_movies" android:icon="@drawable/action_search" android:showAsAction="always" android:title="Search"/&gt; &lt;item android:id="@+id/movies" android:icon="@drawable/action_video" android:showAsAction="collapseActionView" android:title="Movies"/&gt; &lt;item android:id="@+id/theaters" android:icon="@drawable/action_location_map" android:showAsAction="collapseActionView" android:title="Theaters"/&gt; &lt;item android:id="@+id/preferences" android:icon="@drawable/action_settings" android:showAsAction="collapseActionView" android:title="Preferences"/&gt; &lt;item android:id="@+id/contact" android:icon="@drawable/action_about" android:showAsAction="collapseActionView" android:title="Contact"/&gt; &lt;/menu&gt; </code></pre> <p>The result is just the first item showing and the rest are not visible, not even as a dropdown. This is using ActionBarSherlock and a 2.3 Android device. </p> <p>The question is, how can I get the icons to follow this layout:</p> <p><img src="https://i.stack.imgur.com/QsNN2.png" alt="enter image description here"></p> <p><strong>EDIT:</strong></p> <p>The problem I had was because when you are using the actionbar with a device that has a "menu" hardware button the 3-dot dropdown does not shows off, the 4 other items are only displayed if you press the menu hardware button. Does anyone knows if this behaviour can be modified?</p>
    singulars
    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. 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