Skip to main content
0 votes
0 answers
15 views

How to change menu actionitem background Color?

Ok I feel like an idiot, my menu action item has this dark color that does not even exist in my theme, But my menu_item xml is setting it to be a tan color, xmlns:app="http://schemas.android....
Dan Anderson's user avatar
  • 1,124
0 votes
1 answer
128 views

MenuProvider: What is the equivalent of invalidateOptionsMenu?

What is the equivalent of requireActivity().invalidateOptionsMenu() in a fragment when using the new MenuProvider API? When I get some new information at runtime, I need to refresh the menu in my ...
VIN's user avatar
  • 6,907
0 votes
1 answer
121 views

Remove extra menu when search view is click

In my project, I try to remove the extra menu when the search view is clicked and return the menus when canceling the search view. Please find the screenshot below I use this below code to hide and ...
Jagan's user avatar
  • 642
-2 votes
2 answers
128 views

Menu won't show up in search bar

I'm currently facing a problem with a search bar in my app. The search bar is part of an inflated layout from a menu. Within this menu, there's an icon called 'log_out_button' that should appear in ...
Kostah's user avatar
  • 9
1 vote
1 answer
2k views

Android : Options Menu not showing up

I am new to Android programming and wanted to try implementing an options menu in an Android app, so I first created a test app and tried to create an options menu there. I wrote the code and ...
Om Gadekar's user avatar
0 votes
1 answer
55 views

canot click on menu item

I am trying to have a menu item using menu host, I can see the item, but when I click it nothing happens, onMenuItemSelected is not called, none of the timber logs are logged. Is there anything wrong ...
BRDroid's user avatar
  • 4,358
0 votes
0 answers
32 views

Menu Bar not visible

I made an app for menu in Android studios. I have done everything correct i belive still not getting the desired output. Made xml file and inflated it but its not visible when we run the app.Menu xml ...
Vivek084's user avatar
0 votes
0 answers
38 views

Android - change 3 dots menu icon programmatically

I've an actionbar with the default 3 dots menu icon. I need to set an indicator on top of the icon in some cases (for example if a specific message arrives) and remove it in other cases. I tried ...
Sharas's user avatar
  • 2,115
0 votes
1 answer
721 views

Android MenuProvider does not invoke onMenuItemSelected() when a MenuItem is selected

On my working project we need to use SearchView in a few Fragments. The search bar itself have to be placed in Toolbar and opened by clicking the search button at the end of the Toolbar (see the image)...
UnDan's user avatar
  • 11
0 votes
1 answer
54 views

Android Menu Item Navigate Crash

When I go to the main fragment from the login fragment for the first time and press the logout in the menu item in this fragment, I return to the login fragment again. However, when I go to the main ...
edoo000's user avatar
0 votes
1 answer
45 views

How to remove bottom margin from Activity?

How do I make my Activity fit the entire screen? There is this black bar at the bottom of the screen, and a menu bar on the top of the screen with the apps name. I'd like to have it be just the ...
yambo's user avatar
  • 1,787
0 votes
0 answers
178 views

Child fragment menu gets carried over to other parent fragments from BottomNavigationView

Some context: I have an app with a single Activity: MainActivity.kt MainActivity.kt has a BottomNavigationView, which hosts 3 top destination fragments: 1st Fragment: TodayFragment.kt 2nd Fragment: ...
David Rajchenberg's user avatar
0 votes
1 answer
131 views

Xamarin.Android, top bar, how add shortcut button ON/OFF

enter image description hereI can't find way to add button with icon to top screen menu. I don't even know name of this bar. I mean swiping down of top screen menu however your are, there are buttons ...
Dawid Moskalczuk's user avatar
2 votes
2 answers
2k views

How now to create Option menu in Fragment (setHasOptionMenu is deprecated)

When trying to write setHasOptionsMenu(true) in onCreate and override fun onCreateOptionsMenu as usual, Android Studio crosses out these functions saying that they are deprecated. I looked at what ...
Iurii Mg's user avatar
1 vote
1 answer
574 views

Options menu inflate wrongly in viewpager2

I have 4 fragments but for each fragments it has different different menu options in my app with viewpager2 so the user swipe through these all fragments and when the app starts the menu option for ...
MR AR's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
85