popup memu?

rfresh

Well-Known Member
Licensed User
Longtime User
popup menu?

I see with some apps, I can press that key on the bottom left and a popup menu displays. What is that called? I'd like implement that in my app.

Thanks...
 
Last edited:

rfresh

Well-Known Member
Licensed User
Longtime User
Is there a tutorial on how to do this? I looked at the tutorial section but didn't see anything. Thanks...
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
OK, got the basics of this. If I pit an image in the panels, what is the standard image size? 24x24 or 32x32? Or? I want to put a wrench icon on a menu panel as a setup indicator.
 
Last edited:
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
Wow, sizing the icons is a bit complicated. The Google doc talks about 3 sizes depending upon screen density: hdpi, mdpi and ldpi. I assume these values can be associated to what we call our DeviceLayout Scale?

Like so?

Scale = 0.75 == ldpi
Scale = 1 == ldpi
Scale = 1.5 == mdpi
Scale = 2 == hdpi
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
Ok, keep it simple, just size the icons 40x40, I do that in all my apps, the menu icons look good on phones and tablets.

I sent you that documentation as a reference, but I think you should experiment yourself and see the results, like I said above, that's how I do it and it works without a problem on any device.
 
Upvote 0

frapel

Active Member
Licensed User
Longtime User
Currently 48 x 48 png icons work very well for me.

I tested them on phones and tablets with very different screen resolution and density and they always look good.

My suggestion is to experiment with various emulator's resolutions...
 
Last edited:
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
OK, thanks to both of you.

I'm using this code to try and load a 48x48 .png file but I'm getting a file not found err. I understand I can manually upload the file to my device but what when another person trys to install my app and use it?
Activity.AddMenuItem2("License","PopupMenu_License",LoadBitmap(File.DirAssets,"preferences.png"))
 
Upvote 0
Top