堆栈图像查看在相机预览的表面上的顶部运行?
-
12-11-2019 - |
题
我正在尝试在运行相机预览的曲面上显示图像。 到目前为止,我有相机使用superifyhold运行。 我想也许我可以在相机预览的顶部堆叠图像,但我不知道如何完成它。 我怎样才能这样做,或者有没有其他方法可以做到?
我更喜欢以编程方式编码,但有任何帮助是赞赏!
谢谢
解决方案
Instead of using a FrameLayout, you could use a RelativeLayout, which uses z-ordering. Simply put your ImageView after your SurfaceHolder inside the RelativeLayout and it will appear overtop of it.
不隶属于 StackOverflow