[B4X] [XUI] AS FloatingActionMenu
This view makes it quick and easy to let the user make an action. You need: AS_FloatingPanel I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a...
www.b4x.com
In this example, I let the AS_FloatingActionMenu open over an item that is in a list, no matter how far down the item is.
B4X:
Dim Height As Float = FloatingActionMenu.ItemProperties.Height*FloatingActionMenu.Size 'Action Menu Height
Dim Width As Float = 250dip 'Action Menu Width
Dim Left As Float = TargetView.Left + TargetView.Width/2 - Width 'To the left of the target item
Dim RawListItem As CLVItem = CustomListView1.GetRawListItem(CustomListView1.GetItemFromView(TargetView)) 'Gets the raw list item
Dim Top As Float = CustomListView1.AsView.Top + (RawListItem.Offset - CustomListView1.sv.ScrollViewOffsetY) + RawListItem.Panel.Height 'Calculates the right top
If Top + Height > Root.Height Then 'If the menu no longer fits on the screen, display the menu above the list item
Top = Top - Height - 80dip + 20dip
End If