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.
我想在 Camera2 API 预览(也是 TextureView)上显示“ RajawaliTextureView ”,但背景不透明。结果是黑色背景,我看不到相机预览。
如何制作RajawaliTextureView的透明背景?
这对于 TextureView 是不可能的。即使您渲染透明的清晰颜色,由于 Android 在其绘图系统中使用纹理视图的方式,它也会以白色背景为背景。
请阅读https://github.com/Rajawali/Rajawali/wiki/Using-RajawaliSurfaceView-and-RajawaliTextureView#which-one-to-use