Android Question Problem with GetAllViwsRecursive ....

Yayou49

Active Member
Licensed User
Hi,

Using this:

B4X:
For Each V As View In Activity.GetAllViewsRecursive
        Log(V.Top)
    Next

It failed with error:
java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to anywheresoftware.b4a.BALayout$LayoutParams

How to handle this case before this error ?

Thx in advance.
 
Top