Linked Questions

-1 votes
2 answers
54 views

Don't display icon on MenuBar in Android [duplicate]

I'm building an app with AndroidStudio. I want to display an ActionBar in my application. I want to add a menu into my AppCompactActivity. This is the menu: <?xml version="1.0" encoding="utf-8"?&...
bircastri's user avatar
  • 2,155
50 votes
19 answers
90k views

How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets

How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets which does't have menu button. ? I am running application as <uses-sdk android:minSdkVersion="5"/> in Manifest, ...
Subba's user avatar
  • 637
9 votes
7 answers
5k views

ActionBar items appear always in Overflow Menu

I am trying to add actions item in action bar, but items always are adding into the overflow list even there is lot of room. Any suggestion to resolve this ?? This should be like this main.xml <...
N Sharma's user avatar
  • 34.4k
3 votes
2 answers
9k views

Android menu item showAsAction="always" doesn't work

I have tried setting the: android:showAsAction=".." to every one of these: ifRoom, never, withText, always, collapseActionView but I always got the same result, which is not having any buttons on ...
Vilda's user avatar
  • 1,763
3 votes
5 answers
11k views

Custom Menu on button click as drop down

I am trying to implement the action bar functionality of the flipkart app.. For this I have successfully created a custom Action Bar but I am facing problems in showing the menu as drop down on ...
Rohan Kandwal's user avatar
2 votes
2 answers
7k views

Error : should use android:showAsAction when not using support library

I'm using app compact support library v7 for providing support of lollipop in my app. I was able to make it work perfectly. When my actionbar not showing menu items as icon. I have followed this ...
Uniruddh's user avatar
  • 4,436
2 votes
3 answers
5k views

showAsAction "always" does not work for item in android

In my android application, I have an item in the menu, and I want the item display all the time with the icon and the text, this is the setting: <item android:id="@+id/...
hguser's user avatar
  • 35.9k
1 vote
1 answer
4k views

Xamarin ActionBar button items hidden

I want my action bar to show items. All three of the items are hidden in the triple dot icon even though I have android:showAsAction="ifRoom" for all three items. There is certainly enough room, yet ...
Jared Price's user avatar
  • 5,365
0 votes
1 answer
1k views

Menu is not showing in custom toolbar

I am trying to use custom menu in my android app. I want to add some menu items. For the purpose, I add following in my menu_main.xml: <menu xmlns:android="http://schemas.android.com/apk/res/...
learner's user avatar
  • 4,798
0 votes
2 answers
1k views

Menu Item showAsAction="always" has no effect

I use the following definition for an action bar: <style name="YesBar" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <!-- task bar styles go here --> </style> And here'...
src091's user avatar
  • 2,847
0 votes
1 answer
954 views

Show option menu items with action bar tabs

I have an Action Bar with two tabs like this: private void setUpActionBarTabs() { actionBar = getSupportActionBar(); // Creating ActionBar tabs. actionBar.setNavigationMode(ActionBar....
Ibrahim Disouki's user avatar
0 votes
1 answer
1k views

ActionBar menu with text ,icon,text

Hello guys i want to display action with text and images on action bar, but i only get text in overflow menu my menu.xml file <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="...
Manohar's user avatar
  • 23.3k
1 vote
1 answer
456 views

Adding Action Icons to toolbar in an activity that extends ListActivity

I am trying to add action icons to my toolbar but in vain. I have followed all the suggestion from this thread. Maybe the problem is that my Activity doesn't extend ActionBarActivity directly because ...
A_Matar's user avatar
  • 2,310
1 vote
0 answers
241 views

"ifRoom" does not work properly

This is menu I've created: <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/...
Krzysztof Majewski's user avatar
0 votes
0 answers
221 views

Android show menu item as action in Activity extends FragmentActivity

If you want to show a menu item in action bar, the activity MUST extends ActionBarActivity according to this answer. I have an activity which extends FragmentActivity. Actually I have to extend ...
Mandrake's user avatar
  • 115

15 30 50 per page