Android Question When is Activity_CreateMenu fired

Noelkman

Member
Licensed User
Longtime User
Hi there,
regarding this example from Erel. AppCompat in conjunction with StdActionBar and StdActionBarHelper.
So, when is Activity_CreateMenu fired?
is it with the command ACToolBarLight1.InitMenuListener?
I can't even find this member. I don't get it.
 

Noelkman

Member
Licensed User
Longtime User
I think you mean this right ?
B4X:
    Dim jo As JavaObject = ACToolBarLight1
    Dim xl As XmlLayoutBuilder
    jo.RunMethod("setPopupTheme", Array(xl.GetResourceId("style", "ToolbarMenu")))

It is in. Furthermore it is not painting the cart anymore for me. I'm really going nuts. I have the lines from the example.
I inserted the whole example code to my project now but still the same. This is freaking odd.
The funny thing is that at the beginning of this project the cart icon was painted.
Something must be wrong within the resources folder or some like that. I never had this before.
Maybe I start from scratch and import everything new.

Thanks anyhow!
 
Upvote 0

Noelkman

Member
Licensed User
Longtime User
I did't even scroll all the way down on the example. I guess it was too long for me the other day :/
In fact the java lines where missing!

Thanks a big bunch "Misterbates"
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…