Only get 2 icons in default ActionBar

lel4866

New Member
Licensed User
Longtime User
I'm trying to use the default ActionBar under API 15 (4.03)
I've defined an AVD with 720x1280/xhdpi, and put 3 xhdpi (48x48) icons from the Android development site into Files.
I've defined a 720x1280 variant.

I load the icons using:
mnu1.Initialize(File.DirAssets, "2_action_about.png")
Activity.AddMenuItem3("about", "mnuPage1", mnu1, True)
mnu2.Initialize(File.DirAssets, "2_action_settings.png")
Activity.AddMenuItem3("settings", "mnuPage2", mnu2, True)
mnu3.Initialize(File.DirAssets, "2_action_help.png")
Activity.AddMenuItem3("help", "mnuPage3", mnu3, True)

When I run the app using the emulator, I only see 2 icons. The 3rd menu item exists, but it is behind the Overflow Menu dots.

There appears to be plenty of space. Is there something I'm missing?

:sign0104:
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
I had noted this issue in another thread that I can't find at the moment. I had created an app in Eclipse using an action bar and got 3-4 items to show there, but in B4A only had a couple. The B4A items were a little larger and spaced more too. Could be a theme thing or something. I ended up not worrying about it since the main device using it will be Gingerbread.
 
Upvote 0
Top