如何将布局膨胀到 AR 视图,我有锚 ID,我希望布局在锚中浮动。
ViewRenderable.builder()
.setView(this, R.layout.render_view)
.build()
.thenAccept(renderable -> viewRenderable = renderable);
TransformableNode renderNode = new TransformableNode(surfaceView.getTransformationSystem());
renderNode.setParent(anchor);
renderNode.setRenderable(viewRenderable);
renderNode.select();
但我有表面视图,它 transformableNode 需要 TransformationSystem