Why this error: no virtual method getView()Landroid/view/ViewGroup

Now i have this code:
2021-10-11_212553

and call this method like this:
2021-10-11_212622

and got this error:


2021-10-11_212500

Any body know why? This used to be working good.
Thanks.

Maybe there is something wrong with companion.
You can try using Frame Layout.

2 Likes

You can just take HVArrangement as the parm (Layouts) and call getView() on them.