ArFragment 隐藏了一些关于以编程方式添加的 Activity 的视图
ArFragment hides some views on Acitivity if add it programatically
我有 activity,其中有 2 个晶圆厂和文本。我需要在全屏模式下添加 ArFragment。如果我使用 xml 添加此片段,则会显示 2 个晶圆厂和文本。但是如果我使用 supportFragmentManager.beginTransaction().add(R.id.ontainer, ArFragment()).commit()
,在它只显示 2 个 fabs 并且文本消失之后。我该如何修复它,因为我需要以编程方式使用。
我使用 ViewCompat.setTranslationZ(view, 1.0f)
来解决问题
我有 activity,其中有 2 个晶圆厂和文本。我需要在全屏模式下添加 ArFragment。如果我使用 xml 添加此片段,则会显示 2 个晶圆厂和文本。但是如果我使用 supportFragmentManager.beginTransaction().add(R.id.ontainer, ArFragment()).commit()
,在它只显示 2 个 fabs 并且文本消失之后。我该如何修复它,因为我需要以编程方式使用。
我使用 ViewCompat.setTranslationZ(view, 1.0f)
来解决问题