preview stretches in camera2 apis

前端 未结 4 1442
别那么骄傲
别那么骄傲 2021-02-12 23:18

Following are the screenshots when using texture view in camera2 apis.In full screen the preview stretches,but it works when using lower resolution(second image). How to use thi

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 23:43

    That's a common problem on some devices. I've noticed it mostly on samsung. You may use a trick with setting transformation on your TextureView to make it centerCrop like ImageView behaviour

提交回复
热议问题