Android Question AddMenu3 questions

Alberto Michelis

Well-Known Member
Licensed User
1) Any way to add the menu conditionally, that is enter the activity without the menu item and by a spinner change activate or deactivate the menu item?
2) In Poltrait mode the menu appears allways in the back of the screen and in landscape, in the action bar.
My icon is very small and the actionbar title too but it never appears in the action bar in poltrate mode.
Thanks
 

Alberto Michelis

Well-Known Member
Licensed User
B4X:
  Activity.LoadLayout("posicion")            
  Activity.Title = "PortIt - Tenencia"
  Activity.AddMenuItem3("", "mnuAgregar", LoadBitmap(File.DirAssets, "ic_agregar.png"), True)
 

Attachments

Alberto Michelis

Well-Known Member
Licensed User
Yes I have SetApplicationAttribute(android:uiOptions, "splitActionBarWhenNarrow")
in the manifest.

If I comment it then the icon is shown ok in the app bar, but there are many space to do that with the WhenNarrow option.

This is a Phone, a samsung note 3 running android 4.4.2
 

Attachments

Top