I am using this cool grid from thedesolatesoul:
https://www.b4x.com/android/forum/threads/msdynamicgridview-library.49331/
Am I am trying to make a popup menu to pop up over the cell that the user long-clicks on. But if I use the ACMenu popup menu:
The menu will popup near the grid's top left corner and not above the cell being long-clicked.
This must be because I passed "DG" (the datagrid) as the view for the popup menu.
So, it there a way to detect the view under the user's finger that I can pass to the popup routine so it will make the menu appear over the cell the user is touching?
https://www.b4x.com/android/forum/threads/msdynamicgridview-library.49331/
Am I am trying to make a popup menu to pop up over the cell that the user long-clicks on. But if I use the ACMenu popup menu:
B4X:
Sub DG_ItemLongClick(Position As Int)
Dim Pop As ACPopupMenu
Pop.Initialize("Popup", DG )
Pop.AddMenuItem(1, "Delete", Null)
Pop.AddMenuItem(2, "Rearrange", Null)
Pop.Show
End Sub
The menu will popup near the grid's top left corner and not above the cell being long-clicked.
This must be because I passed "DG" (the datagrid) as the view for the popup menu.
So, it there a way to detect the view under the user's finger that I can pass to the popup routine so it will make the menu appear over the cell the user is touching?