The following code works in B4A but the tag property is cleared in B4J (B4i I haven't tested):
I solved the problem by:
but it took me quite a while to find the problem because the code was initially written and debugged in B4A.
B4X:
RejectPnl = xui.CreatePanel("")
Root.AddView(RejectPnl, 0, 0, Root.Width, Root.Height)
RejectPnl.Tag = "RejNote"
RejectPnl.LoadLayout("RejectNote")
B4X:
RejectPnl = xui.CreatePanel("")
Root.AddView(RejectPnl, 0, 0, Root.Width, Root.Height)
RejectPnl.LoadLayout("RejectNote")
RejectPnl.Tag = "RejNote"