Yayou49 Active Member Licensed User Sep 9, 2018 #1 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 Click to expand... How to handle this case before this error ? Thx in advance.
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 Click to expand... How to handle this case before this error ? Thx in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 11, 2018 #3 You can find out which view causes this error: B4X: Log(GetType(V)) Upvote 0