Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to force overflow menu in Actionbar using Actionbarsherlock on < 4.0 devices
    text
    copied!<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/10509510/actionbarsherlock-holoeverywhere-forcing-overflow">ActionBarSherlock &amp; HoloEverywhere - Forcing Overflow?</a> </p> </blockquote> <p>I am using ActionbarSherLock library to display Actionbar on pre-Gingerbread devices..</p> <p>I want Overflow menu on actionbar.. I have searched a lot and i come to know that devices that has hardware Menu Button then Overflow Menu will not display..</p> <p>and i also looked into ActionbarSherlock sample demo for that solution,bt still i can't get solution..</p> <p>I have created demo for actionbar,when emulate on device which has no Menu Button then it will display overflow menu but if device has Menu button then overflow menu will not displaying.. </p> <p>Following is my Configuration :-</p> <pre><code> public class MainActivity extends SherlockActivity { @Override public void onCreate(Bundle savedInstanceState) { setTheme(R.style.Theme_Sherlock); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater=getSupportMenuInflater(); inflater.inflate(R.menu.activity_main, menu); // return true; return super.onCreateOptionsMenu(menu); } } </code></pre> <p>Manifest :-</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="demo.menu.actionbar_using_lib" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /&gt; &lt;uses-feature android:name="android.hardware.touchscreen" android:required="false"/&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/Theme.Sherlock" &gt; &lt;activity android:name=".MainActivity" android:label="@string/title_activity_main" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; </code></pre> <p></p> <p>Menu Configuration :-</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;item android:id="@+id/save" android:title="@string/menu_save" android:icon="@drawable/ic_action_search" android:showAsAction="ifRoom|withText"/&gt; &lt;item android:id="@+id/setting" android:title="@string/menu_settings" android:icon="@drawable/ic_action_search" android:showAsAction="ifRoom|withText"/&gt; &lt;item android:id="@+id/search" android:title="@string/menu_search" android:icon="@drawable/ic_action_search" android:showAsAction="never"/&gt; &lt;item android:id="@+id/refresh" android:title="@string/menu_refersh" android:icon="@drawable/ic_action_search" android:showAsAction="never"/&gt; &lt;item android:id="@+id/edit" android:title="@string/menu_edit" android:icon="@drawable/ic_action_search" android:showAsAction="never"/&gt; &lt;item android:id="@+id/delete" android:title="@string/menu_delete" android:icon="@drawable/ic_action_search" android:showAsAction="never"/&gt; </code></pre> <p></p> <p>I want to display Overflow menu..so plz Suggest me .. Thanks in Advance..</p>
 

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