@LucaMs dont use pane or panel, use B4XView for panels and labels. Only then its 100% B4X.
Because .SetLayoutAnimated on B4I for the Panel has one more paramater.
So I don't know why you are turning the B4XView into a panel or pane again. Even if you need to access platform-specific things, you can still control it with #If B4A or #If B4J and then call platform-specific things with the .As(Pane).SpecialB4JFunctionForPane.
@LucaMs you can also write to me privately if you develop something that should also work in B4I, then I'll take a look at it