Hi, there.
I can show a hamburguer menu in a B4xPage, but I don't know haw to do it in the B4xMainPage.
I have tried it copying the next code in the Initialize sub and in the B4XPage_Created sub, but in both cases only show the icon in the pages, not in the B4XMainPage:
Please, help.
Thank in advance.
I can show a hamburguer menu in a B4xPage, but I don't know haw to do it in the B4xMainPage.
I have tried it copying the next code in the Initialize sub and in the B4XPage_Created sub, but in both cases only show the icon in the pages, not in the B4XMainPage:
B4X:
HamburgerIcon = xui.LoadBitmapResize(File.DirAssets, "my.png", 32dip, 32dip, True)
B4XPages.GetManager.ActionBar.RunMethod("setDisplayHomeAsUpEnabled", Array(True))
Dim bd As BitmapDrawable
bd.Initialize(HamburgerIcon)
B4XPages.GetManager.ActionBar.RunMethod("setHomeAsUpIndicator", Array(bd))
Please, help.
Thank in advance.