title: How to superimpose a layout on a image in ARcore?
body: <p>I have tried my best to superimpose a layout on a image target. The layout is shown vertical to the target image but i want the layout to perfectly superimpose the target image. I have tried to rotate the layout using anchor nodes but no success. Please help me in this problem as i am very new to the arcore and sceneform.
  This is my code snippet that i have tried </p>
  
  <pre><code>private void createViewRenderable(Anchor anchor, float extentX, float extentZ, List&lt;Integer&gt; image_list) {
      ViewRenderable
              .builder()
              .setView(this, R.layout.test)
              .build()
              .thenAccept(viewRenderable -&gt; {
                  addToScene(viewRenderable, anchor, image_list);
                  renderable = viewRenderable;
              });
  
      anchorNode = new AnchorNode(anchor);
  
      // Create the transformable andy and add it to the anchor.
      // TransformableNode node = new TransformableNode(arFragment.getTransformationSystem());
  
      //set rotation in direction (x,y,z) in degrees 90
  
      texture.getSurfaceTexture().setOnFrameAvailableListener(surfaceTexture -&gt; {
          anchorNode.setParent(arFragment.getArSceneView().getScene());
          Vector3 vector3 = new Vector3(0f, 0f, extentZ / 2);
  
          anchorNode.setLocalPosition(vector3);
          anchorNode.setLocalRotation(Quaternion.axisAngle(new Vector3(1.0f, 0f, 0f), -90f));
          anchorNode.setLocalScale(new Vector3(extentX, extentZ, 0f));
          anchorNode.setRenderable(renderable);
          texture.getSurfaceTexture().setOnFrameAvailableListener(null);
          anchorNode.setWorldScale(new Vector3(extentX, 1f, extentZ));
  
          scene.addChild(anchorNode);
      });
  </code></pre>
  
  <p>What do i want to achieve?
  I want to display all the images in a viewpager adapter, that code is working just fine but only problem is that the following layout (R.layout.test) - containing viewpager is vertical to target image. See below
  <a href="https://i.stack.imgur.com/M0q1g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M0q1g.png" alt="enter image description here"></a></p>