For a standard view you check for .Parent = null but that doesn't work with B4x Views but this Seems to work but also seems a little onerous:
It is nice to have only one way to do this.
As a side note I noticed that you can AS a b4xview as a B4Xview
Which means (If I am correct in my assumptions) the following function would be the universal way to test any view to see it is is loaded:
AND If this is valid I would add a WISH that this be added as a Core function (perhaps XUI.IsLoaded(V As View)?).
B4X:
Dim VV As B4XView = xui.CreatePanel("")
Log(VV.Parent.As(String).EqualsIgnoreCase("(B4XView) Not initialized"))
'OR
Dim Txt As Label
Txt.Initialize("")
Log(Txt.As(B4XView).Parent.As(String).EqualsIgnoreCase("(B4XView) Not initialized"))
As a side note I noticed that you can AS a b4xview as a B4Xview
B4X:
Dim VV As B4XView = xui.CreatePanel("")
Log(VV.As(B4XView).Parent.As(String).EqualsIgnoreCase("(B4XView) Not initialized"))
B4X:
Sub IsLoaded(BXV As B4XView) As Boolean
Return Not(BXV.As(B4XView).Parent.As(String).EqualsIgnoreCase("(B4XView) Not initialized"))
End Sub