Get Child Count

Hi everyone,
I'm trying to get total child count in Vertical arrangement.
image

as you can see there is total two childs.
but i'm getting 1

below is my code
@SimpleFunction(description = " ")
public int ChildCount(HVArrangement Comp){
ViewGroup to = (ViewGroup)Comp.getView();
int count = to.getChildCount();
return count;
}

Looks like you are working in Kodular. Please ask your question there.

closing.....

2 Likes