The AS Popup Menu is an enrichment of the B4X Views and basically easy to use.
And although it works fine in B4A, a strange effect occurs in B4i:
At the first call the list is narrow, at all further calls it is normal wide.
This code was transferred by copy/paste from an Android project:
Does anyone have a suggestion on where to start troubleshooting?
And although it works fine in B4A, a strange effect occurs in B4i:
At the first call the list is narrow, at all further calls it is normal wide.
This code was transferred by copy/paste from an Android project:
B4X:
'aspm_main.Initialize(Activity, Me, "aspm_main") ' <-- works in B4A
aspm_main.Initialize( Page1.RootPanel, Me, "aspm_main")
aspm_main.ActivityHasActionBar = True
aspm_main.OrientationVertical = aspm_main.OrientationVertical_BOTTOM
aspm_main.DividerEnabled = True
aspm_main.DividerHeight = 2dip
aspm_main.DividerColor = Starter.xui.Color_White
aspm_main.TitleLabelProperties.BackgroundColor = Starter.xui.Color_White
aspm_main.TitleLabelProperties.TextColor = Starter.xui.Color_Black
aspm_main.TitleLabelProperties.Height = 20dip
aspm_main.ItemLabelProperties.xFont=Starter.XUI.CreateDefaultFont(12)
aspm_main.AddTitle(Starter.loc.Localize("Musikempfehlung"),60dip)
aspm_main.MenuCornerRadius = 4dip
For i = 0 To musiList.Size -1
aspm_main.AddMenuItem(musiList.Get(i), i)
Next
aspm_main.OpenMenu(C1Panel_Toolbar, 96%x)
wait for aspm_main_ItemClicked(Index As Int,Tag As Object)
Does anyone have a suggestion on where to start troubleshooting?