Android Question The actionbar UpIndicator is not useable in andorid 5.0

Discussion in 'Android Questions' started by fash866, Jul 23, 2015.

  1. fash866

    fash866 Member Licensed User

    My code:
    Dim acBar As StdActionBar
    acBar.Initialize("acBar")
    acBar.Icon=LoadBitmap(File.DirAssets,"ic_action_user.png")
    acBar.ShowUpIndicator=True

    The UpIndicator can click and run normally on android 4.0/4.4,But on android 5.0 , the click listener cant work,the code is :

    Sub acBar_ButtonClicked
    StartActivity(Main)
    thisActivity.Finish
    End Sub
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use Activity_ActionBarHomeClick event instead.

    It will work on all versions.
     
    yiankos1, Peter Simpson and fash866 like this.
  3. fash866

    fash866 Member Licensed User

    Yes! It' work!!very thank you!
     
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