How can I add android widget to ViroCore scene?

117 Views Asked by At

I am developing panorama application and I cannot find some ways to implement my Android layouts or Android widgets(TextView, ImageView etc.) to my scene on ViroView.

Is it possible to do in this 3rd party library(ViroCore)?

Thanks, a lot!

1

There are 1 best solutions below

0
On BEST ANSWER

first you need to inflate the view , then create an AndoridViewTexture ,and finally use the function attachview and give it the inflated view as a parm.

AndroidViewTexture androidTexture = new AndroidViewTexture(viroView.provideView(), pxWidth, pxHeight, isAccelerated);

androidTexture.attachView(inflated);