How to add MountSpec component in LayoutSpec or XML in android

245 Views Asked by At

I am able to set MountSpec directly in Activity setContentView(), but its not working when I am trying to add it with my existing XML view (using LayoutSpec or even directly).

1

There are 1 best solutions below

0
On

You might want to use LithoView to connect between Spec and Android native view.

Also Spec can't be used in XML directly.