Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 MediaRecorder 而不向用户显示正在捕获的视频的预览。据我了解,可以通过将 SurfaceView 设为 0 x 0 像素来实现。hank 有人知道该怎么做吗?
谢谢!
据我所知,它必须是 1 x 1 像素,而 0 像素将不起作用,因为框架会认为它不可见
为什么不让它隐形?
您可以以编程方式执行此操作:
yourView.setVisibility(View.INVISIBLE);