Android more option menus ain't appearing as grid - java

I have around 10 or 12 option menus, when I press the menu key, 6 menus appear as a grid including More, but when clicking More menu, the rest of menus appear as list. How can I make them look like a grid too?

The Android API (10 and below) only supports 6 menu button items, after that it adds the "More" button as you noticed. (API 11+ recommends using an ActionBar, not an options menu.) I don't know of anyway to change the Android code to display more items in the grid. But you could write your own code to do what you want.
From the Developer's Guide:
If you've developed your application for Android 2.3.x (API level 10) or lower, the contents of your options menu appear at the bottom of the screen when the user presses the Menu button, as shown in figure 1. When opened, the first visible portion is the icon menu, which holds up to six menu items. If your menu includes more than six items, Android places the sixth item and the rest into the overflow menu, which the user can open by selecting More.

Try creating custom menu, this helped me a lot. Hope this works for you.

Related

Advanced menu in Java with Android Studio

I designed a menu using Java language and now I want each menu item to go to the desired page when clicked.
And one more thing is that I want to have a light and dark mode in my menu, how do I do it?
But I don't know, can you please introduce me the pages that have this trainingenter image description here
I have made the menu but I don't know how to add day and night mode
and opening each menu item in a separate page
It is called Navigation Drawer, you can follow tutorial in this link to learn how to create it:
https://guides.codepath.com/android/Fragment-Navigation-Drawer

Netbeans how to restore the compile errors popup [duplicate]

This question already has answers here:
disable/enable compilation errors in Netbeans
(2 answers)
Closed 6 years ago.
This is a pretty silly situation, but I accidentally disabled the "One or more projects were compiled with errors" popup because I hit enter whilst selecting the wrong thing. I like the popup as it is a clear indication that something isn't correct before the program runs, is there any way to restore the popup?
This isn't a really big issue or anything, I was just wondering if anybody could give any pointers as to where the option is located.
Thanks :)
Picture of the popup:
try
*User made a lot of changes to the toolbar layout and added/removed a lot of buttons and now he/she wants to reset the toolbars to their default settings. The default settings are the toolbar layout and content as on the first IDE startup.
Scenario:
User right-clicks an empty area in the toolbar row to open popup menu.
User selects Reset Toolbars item in the popup menu and all toolbars are restored to their default settings.
Alternate Scenario:
User selects main menu View - Toolbars.
User selects Reset Toolbars item in the popup menu and all toolbars are restored to their default settings.
Alternate Scenario - Using Customize Toolbars window:
User invokes Customize Toolbars window - either from the toolbar popup menu or from the main menu View - Toolbars - Customize.
User clicks Reset Toolbars button and all toolbars are restored to their default settings.*
see this

Slide out menu android java

I made an application for my Samsung device. Samsung phones generally have a menu button on the bottom side of the phone which is a problem for those devices who do not. I tried my app out on a Nexus, but since it did not have the physical menu button, I couldn't open the menu.
Now I want to make another option to to open the menu in my app. I though a slide out menu would be nice. I want to use the same menu but another way to open it. I want to be able to open it from the side of the screen by swiping to the right, and from the menu button.
P.S. Normally there is a titlebar on top of the screen in an app with a menu button/option on it to. But I hide my titlebar (in my AndroidManifest), so that's the issue why I need another solution..
Use Navigation Drawers for slide out menu. You can use Navigation for two menus, one from left other from right using different listview.
If you want to design a custom slide out menu using navigation drawer here is a tutorial.
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

In Intellij-IDEA 13, what happened to the tool window buttons that version 12 had?

I installed the community edition of Intellij-IDEA 13 and I lost the tool window buttons on the right, left and bottom. Here's an image of the buttons on the right in Intellij-IDEA 12:
What happened to these? I can get them to pop up by going to View -> Tool Windows -> <Pick One>, but if I close them, I have to go back to the menu to get it to pop up. This isn't that big of a deal because there are also short cuts attached to some of them. But, I use the "Maven" one frequently, and there's no shortcut attached for that one.
Were these tool window buttons replaced with something better that I haven't discovered yet? If not, is there a way to get these buttons back?
Such buttons are invisible by default from left and right side. Click here if you want make them visible: And click again and they will disappear.
Maybe this will help:
http://www.jetbrains.com/idea/webhelp/intellij-idea-tool-windows.html
There's a button that will bring them right up without resorting to the menu selection.
Whilst the tool window buttons are not visible, you can double-tab alt to see them temporarily (the 3 borders containing them pop up), and whilst still holding down alt you can hit the relevant key (e.g. 1 for Project) to choose one.
Similarly, you can use ctrl-tab and a number to focus a tool window.
I commonly have tool windows visible on my desktop pc and not visible on my laptop (where screen space is limited).

Want to HIDE/REMOVE screen menu bar

I have written a java app using NetBeans 7.2 under Os X 10.8.2 on a 2012 Mac Book Pro and I have decided I want the screen menubar removed or hidden since there is no easy way of editing the screen menu bar for my java app. I have searched and searched on the screen menu bar but I have not found anything showing how to: edit or hide. The only information I have come up with, using NetBeans is how to combine my JMenuBar into the screen menu bar and the examples for that didn't work.
If someone can point me into a good direction for editing the contents of the Screen Menu Bar I would be more then happy to use it. But if there is no easy way of doing this without re-writing the source code with an override then I will stay with my own menu on the form and hide or remove the Screen Menu Bar if this can be done.
You cannot. The system menubar is a shared user interface element — you can only hide it if you're running full screen, at which point you end up with no menu bar at all.
You should really look into getting your application's menu bar to not appear in the window, as this is not an expected user interface idiom on Mac OS X. If you are not doing so already, this code may help:
System.setProperty("apple.laf.useScreenMenuBar", "true");
If that doesn't do it, there are a number of questions in the "Related" sidebar with information that may help.

Categories

Resources