Denisque
Denisque

Reputation: 55

How can I add android widget to ViroCore scene?

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!

Upvotes: 1

Views: 112

Answers (1)

Kiblawi_Rabee
Kiblawi_Rabee

Reputation: 274

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);

Upvotes: 1

Related Questions