Noelkman Member Licensed User Longtime User Aug 5, 2017 #1 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.
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.
Misterbates Active Member Licensed User Aug 5, 2017 #2 The example includes some in-line java that you need to include to have the event fire... Upvote 0
Noelkman Member Licensed User Longtime User Aug 5, 2017 #3 I think you mean this right ? Code: Copy 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
I think you mean this right ? Code: Copy 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!
Misterbates Active Member Licensed User Aug 5, 2017 #4 No, take a look at #if java in the following post https://www.b4x.com/android/forum/threads/appcompat-toolbar-menu-menu_opened-event.82108/. It also has a bonus additional event ;-) Upvote 0
No, take a look at #if java in the following post https://www.b4x.com/android/forum/threads/appcompat-toolbar-menu-menu_opened-event.82108/. It also has a bonus additional event ;-)
Misterbates Active Member Licensed User Aug 5, 2017 #5 There're a lot of different examples in this post https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/ Upvote 0
There're a lot of different examples in this post https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/
Noelkman Member Licensed User Longtime User Aug 6, 2017 #6 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
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"