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



there are many repetitive elements in contlist.
the correct number should be only two.
Is it a bug?
thanks a lot!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…