Android Custom Camera Zoom Not Working

前端 未结 3 1797
抹茶落季
抹茶落季 2021-01-15 03:48

I have seen several other questions on this subject but none seem to solve my problem. I have a custom camera app that is working fine, everything but the zoom buttons. this

3条回答
  •  独厮守ぢ
    2021-01-15 04:01

    Its simple forget about startSmoothZoom() method

    follow this:

    Camera.Parameters params = camera.getParameters();
    params.setZoom(zoom_value);
    camera.setParameters(params);
    

提交回复
热议问题