MarkusR Well-Known Member Licensed User Longtime User May 15, 2019 #1 enumerate through activity objects / views did not return the original custom view class for some reason.
enumerate through activity objects / views did not return the original custom view class for some reason.
Erel B4X founder Staff member Licensed User Longtime User May 15, 2019 #2 You are not posting in the correct place. You should post it in the questions forum.
MarkusR Well-Known Member Licensed User Longtime User May 15, 2019 #3 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 Click to expand...
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 Click to expand...
Erel B4X founder Staff member Licensed User Longtime User May 15, 2019 #4 JavaObject has nothing to do with this. Custom views are not views by themselves so the class instances will never be directly in the views tree. For further discussion start a new thread in the questions forum.
JavaObject has nothing to do with this. Custom views are not views by themselves so the class instances will never be directly in the views tree. For further discussion start a new thread in the questions forum.