Android Question Menu and showupindicator

Discussion in 'Android Questions' started by Tom1s, Feb 3, 2015.

  1. Tom1s

    Tom1s Member Licensed User

    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?

    Code:
    Sub bar_ButtonClicked
    sm.ShowMenu
        
    Log("bar button clicked")
    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The correct way to intercept the action bar click event is with:
    Code:
    Sub Activity_ActionBarHomeClick
     
  3. Tom1s

    Tom1s Member Licensed User

    Thanks it worked.. How about that "Refresh" button?
    This does not work:
    Code:
    Sub Activity_ActionBarRefreshClick
     
    Last edited: Feb 3, 2015
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no such event.

    Which refresh button?
     
  5. Tom1s

    Tom1s Member Licensed User

    That button
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    How did you add this button?
     
  7. Tom1s

    Tom1s Member Licensed User

    Actionbar:
    Code:
    Activity.AddMenuItem3("Refresh""Menu", bd.Bitmap, True)
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You have set the event name to Menu so you need to use:
    Code:
    Sub Menu_Click

    End Sub
     
  9. Tom1s

    Tom1s Member Licensed User

    Me stupid... too easy. I tried Actionrefresh_click,Actionmenu_Click etc...
    Thanks again.
     
  10. Tom1s

    Tom1s Member Licensed User

    How about longclick?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Menus don't support long click events.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice