Wish enumerate custom views in activity

MarkusR

Well-Known Member
Licensed User
Longtime User
enumerate through activity objects / views did not return the original custom view class for some reason.
 

MarkusR

Well-Known Member
Licensed User
Longtime User
my intent was having this.
B4X:
    For Each MyCustomViewX As MyCustomView In Activity.GetAllViewsRecursive
        Log("Found")
    Next
if this can be already done (without java object detours) then i posted in the wrong place.
java.lang.ClassCastException: anywheresoftware.b4a.BALayout cannot be cast to com.example.turn.mycustomview
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…