Hello
Library File & Example Download
Latest Version: 110 : All Future Updates of this component are maintained here.
1. Each menu item can be assigned a badge.
2. The radial menu can be placed anywhere in the screen, top left, bottom right etc. (to figure out how to center on page)
Here is some example code...
Library File & Example Download
Latest Version: 110 : All Future Updates of this component are maintained here.
1. Each menu item can be assigned a badge.
2. The radial menu can be placed anywhere in the screen, top left, bottom right etc. (to figure out how to center on page)
Here is some example code...
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private rm As AMRadialMenu
Private pg As AMPage
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.Title = "Radial Menu"
pg.Initialize(Me, "pg",0dip,0dip,100%x,100%y)
rm.Initialize("rm","settings.png", "windowsback.png", True)
'rm.Position = rm.EnumRadialMenuPosition.righttop
'rm.enableAnimation = False
rm.BackgroundColor = "red"
'rm.Radius = "100"
'rm.renderMode = pg.EnumRenderMode.android
'add individual menu items
rm.AddMenuItem("google", "Google", "", "google.png", True)
rm.AddMenuItem("music", "Music", "", "music.png", True)
rm.AddMenuItem("direction", "Direction", "", "map.png", True)
rm.AddMenuItem("message", "Message", "300", "messaging.png", True)
pg.AddRadialMenu(rm)
pg.Render
Activity.AddView(pg.asview, 0dip, 0dip, Activity.Width, Activity.Height)
Activity.AddMenuItem3("Tiles", "cmdTiles",LoadBitmap(File.DirAssets,"tiles.png"),True)
Last edited: