billthefarmer / editor

Android simple text editor
https://billthefarmer.github.io/editor
GNU General Public License v3.0
474 stars 85 forks source link

No Menu #189

Closed jetryco closed 1 year ago

jetryco commented 1 year ago

As seen in the image, the "3-dots", where I assume there is a menu, are missing.

NoMenu_23-01-07

It is version 1.79 installed using F-droid on Android 5.1.1 on Samsung Galaxy Note 10 (SM-P600).

billthefarmer commented 1 year ago

Screenshot_20230115-183048 1

jetryco commented 1 year ago

Ok. My guess is that something changed in the transition Android 5 --> 6. My problem is that Android 5.1.1 is the last existing update on the unit (SM-P600).

billthefarmer commented 1 year ago

OK, this is a Galaxy Nexus 5.1 emulator, works fine.

Screenshot_1674730807

Screenshot_1674730822

jetryco commented 1 year ago

Hmm, out of ideas. I tried to change font size, language, etc., no luck. I have been poking around in the developer options, turned on showing layout bounderies: NoMenu_23-01-26_LayoutBounderies It did not give me any useful information, can you see anything?

Is there there something in developer options that can reveal some useful information? (I do have some programming skills but not on phones/tablets.)

Anyway, I will try to uninstall/reinstall the app.

billthefarmer commented 1 year ago

I don't have any ideas either. Developers don't have a great deal of control over how the toolbar/menu appears on any given device. The content is defined in an xml file – Menus, in this case – here. There are two functions in the API for this particular menu: onCreateOptionsMenu, used to create the menu, here and onPrepareOptionsMenu, here, used to enable/disable items according to the state of the app, to add checkmarks and to add items dynamically, like the Open recent items.

There is a property android:showAsAction which is used to indicate whether you would like the item to appear in the toolbar or not, but it is a suggestion, ifRoom. It is possible to use always, which I haven't used in this app. I have had all sorts of weird things reported by users of my apps, most of which I have not been able to reproduce.

jetryco commented 1 year ago

I am an idiot... There is no Menu icon, because there is no need. This old tablet has a hardware menu button, and it works.

Thank you for the patience with the stupid.

billthefarmer commented 1 year ago

OK, I've had quite a few weird reports, but this is the best one yet.