Despite giving a tag to all the views in my project (including Activity) I can see there is still one view
with a Null tag. Can't figure out what this view is. I can reproduce this easily for example take this project: https://www.b4x.com/android/forum/threads/b4x-xui-b4xdialog-custom-dialogs.99756/
and give all views a tag the same as the view name and do in Public Sub Show:
B4X:
For Each v As B4XView In Background.GetAllViewsRecursive
v.Enabled = False
Log("Dialog.Show, vTag: " & v.Tag)
Next
Well, with my example you shouldn't look at the log. Look at your screen, the Null view should be the only one visible. (Try setting the X and Y pos of it to be on-screen if needed.)
If you want to see what kind of view it is and where it is you do it
B4X:
For Each v As View In Background.GetAllViewsRecursive
Log("________")
Log("Tag: " & v.Tag)
Log("Type Class: " & v)
Log("Top: " & v.Top)
Log("Left: " & v.Left)
Next
If you want to see what kind of view it is and where it is you do it
B4X:
For Each v As View In Background.GetAllViewsRecursive
Log("________")
Log("Tag: " & v.Tag)
Log("Type Class: " & v)
Log("Top: " & v.Top)
Log("Left: " & v.Left)
Next
This may be a wild guess, but, can it be that the null view is the "parent" of all the others, like in B4J, the "Form" is not the parent, the rootpane is... So this null view may be the activity panel...
This may be a wild guess, but, can it be that the null view is the "parent" of all the others, like in B4J, the "Form" is not the parent, the rootpane is... So this null view may be the activity panel...
In the quoted example it was the panel called p, which I forgot to give a Tag.
BTW, it looks that in the quoted example we could do away with the panel called Base.
Will have a look at that.