1,267 questions
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....
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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)...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...