This is something which I have always felt the lack.
While searching here on the site if there was at least a way to match the indexes (badly explained but now it does not matter) I found this thread/Library: XmlLayoutBuilder - Load Xml layouts
In the example, there is:
B4X:
Dim x As XmlLayoutBuilder
' ...
Panel1 = x.GetView("panel1")
i am not sure if i understand you well or you didnot understood what is my problem.
the thing is that i create my views in DESIGNER and i want to use the same EVENT (SUB) for several views so to to know what view was clicked with the sender method i could use the tag property but i NEED it for a dynamic TYPE object that will change in code. so this is not an option.
if i could get the view NAME i could use it to know what view was pressed.
i have a list with lots of items and when i click on it a panel will open with about 10 views then i will fill all view tags with a custom TYPE object from the item that was clicked and use all those tag properties when i save the item again so the tag will always change and it will need to hold the custom TYPE object when i click on it.
if i will set the tag to something different i will loose the custom type object.