Tom1s Member Licensed User Longtime User Feb 3, 2015 #1 Hi If I use appcompat actionbar and jfenstein10 sliding menu how I can get menu to open with showupindicator? With stdtoolbar it opens with this but this does not work even with stdtoolbar with appcompat theme and lollipop? B4X: Sub bar_ButtonClicked sm.ShowMenu Log("bar button clicked") End Sub
Hi If I use appcompat actionbar and jfenstein10 sliding menu how I can get menu to open with showupindicator? With stdtoolbar it opens with this but this does not work even with stdtoolbar with appcompat theme and lollipop? B4X: Sub bar_ButtonClicked sm.ShowMenu Log("bar button clicked") End Sub
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2015 #2 The correct way to intercept the action bar click event is with: B4X: Sub Activity_ActionBarHomeClick Upvote 0
The correct way to intercept the action bar click event is with: B4X: Sub Activity_ActionBarHomeClick
Tom1s Member Licensed User Longtime User Feb 3, 2015 #3 Thanks it worked.. How about that "Refresh" button? This does not work: B4X: Sub Activity_ActionBarRefreshClick Last edited: Feb 3, 2015 Upvote 0
Thanks it worked.. How about that "Refresh" button? This does not work: B4X: Sub Activity_ActionBarRefreshClick
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2015 #4 There is no such event. Which refresh button? Upvote 0
Tom1s Member Licensed User Longtime User Feb 4, 2015 #5 That button Attachments refresh.jpg 2.9 KB · Views: 270 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2015 #6 How did you add this button? Upvote 0
Tom1s Member Licensed User Longtime User Feb 4, 2015 #7 Actionbar: B4X: Activity.AddMenuItem3("Refresh", "Menu", bd.Bitmap, True) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2015 #8 You have set the event name to Menu so you need to use: B4X: Sub Menu_Click End Sub Upvote 0
Tom1s Member Licensed User Longtime User Feb 4, 2015 #9 Me stupid... too easy. I tried Actionrefresh_click,Actionmenu_Click etc... Thanks again. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2015 #11 Menus don't support long click events. Upvote 0