Android Example Fan Menu

After all the work I went through to make the simple pie graph, I noticed I had 90% of the code to make a "Fan Menu" type library so I went ahead and created the following prototype:

I don't have the time to create a full-fledged/featured library for this control, so I figured I would upload the basic framework so anyone can run with it or use it as a basic menu example project.

The library is 100% B4A and requires only the XUI and Reflection libraries. It is pretty simple and doesn't have much (if anything) in the way of error trapping/parameter validation.

If anyone wants to build on this (for example, additional blade rings for "sub menus" or wants to add touch effects for item selection such as wave ping/color change etc.) feel free to upload your modified examples here.


    221 KB · Views: 795


Active Member
Licensed User
Longtime User
This is great. Can't believe no-one has played with this code.

I started playing with it tonight - added this line inside the btnReset_click function to make the fans different colours.

        'Set the color to a random color
        poItem.BackColor = Colors.ARGB(255,Rnd(0,255),Rnd(0,255),Rnd(0,255))

Not much, but it makes it look pretty!