radialButtonFindDistributedPoints

open fun radialButtonFindDistributedPoints(num_pts: Int, theta_max: Float, open_left: Boolean, x0: Int, y0: Int, min_item_height: Float, min_height_spacing: Float, min_radius: Float, max_radius: Float): List<Point>

This method will solve for a sequence of points to set the action buttons that will pop-out from a radial action button. Note: this open handles the cases of opening left or right. It does *not* handle the cases of opening up or down or outward from a corner

Return

A list of points in screen coordinates for the sub-list. Note that if we are in open_left mode, the views should align their right to these points If we are in open_right mode, the views should align their left to these points

Parameters

num_pts

The number of points to distribute (items in the sub-list)

theta_max

The maximum angle spread for the arc (I recommend 160)

open_left

Whether it should open left or open right (e.g., LTR or RTL)

x0

The x-screen location of the FAB

y0

The y-screen location of the FAB

min_item_height

The height of each item in the sub-list (sub-view)

min_height_spacing

The minimum height desired between sub-list items (e.g., 2 dp?)

min_radius

The minimum radius size (e.g., 5 dp?)

max_radius

The maximum radius size (e.g, 30 dp?)