java - 自定义相机的SurfaceView 中由于surfaceChanged()方法多次调用,导致在此方法中设置相机预览图闪烁
大家讲道理
大家讲道理 2017-04-18 10:50:31
0
1
587

通过SurfaceView来显示相机的预览图,在surfaceChanged()中来设置预览图的纵横比。但是当SurfaceView所在的FrameLayout发生变化时(我加入了一个PreferenceFragment),SurfaceView会发生重绘,surfaceChanged()多次调用导致多次修改预览图大小和位置,从而发生预览图闪烁问题,试问如何在不去掉加入的PreferenceFragment的情况下,来解决预览图闪烁的问题?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

répondre à tous(1)
Ty80

Comment l'affiche originale a-t-elle créé cet arrière-plan ? Il a l'air si net

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!