camera-samples
camera-samples copied to clipboard
Camera2: Manual SurfaceView rotation
Hi guys. How can manually rotate (90/180/270) camera2 preview, using AutoFitSurfaceView/SurfaceView from example? Thanks!
I need to learn that one(suppose to fix the multi-window/large screen problem in that class when I get chance)
@ggfan Ok)
- Now I can't fix the rotation issue with "AutoFitSurfaceView"?
Normal: https://drive.google.com/file/d/1Ecg0A8uO93iV4A05YoArfdcQwtCuuAQh/view?usp=sharing
Rotation 90: https://drive.google.com/file/d/1qlL34fEeWWiLtf25buiTk6MNbEQ3a1rq/view?usp=sharing
- Do I need to use the old approach with "AutoFitTextureView" to fix this issue?
https://github.com/googlearchive/android-Camera2Basic/tree/master/Application/src/main/java/com/example/android/camera2basic