B4J Question [abmaterial] about page.getallcomponentsoftype(repetitive elements)

liulifeng77

Active Member
Licensed User
Longtime User
hi,
here is my code:
B4X:
Dim contlist As List = page.GetAllComponentsOfType(ABM.UITYPE_ABMCONTAINER)
    Log(contlist.Size)
    For i = 0 To contlist.size - 1
        Dim cont As ABMContainer = ABM.CastABMComponent(contlist.Get(i))
        Log(cont.id)
    
    Next


1653136782273.png

there are many repetitive elements in contlist.
the correct number should be only two.
Is it a bug?
thanks a lot!
 
Top