You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use portrait mode, it seems fine, but when I go into landscape, the viewfinder view is still vertical, although the camera view is now horizontal.
Activity
kllkko commentedon Feb 12, 2020
Hi bro,I found the same question,have you solve this problem? could you give me some suggestions ,thanks
puppykickr commentedon Feb 13, 2020
@kllkko
Not yet.
There are many apps in the Simple Mobile Tools collection, and some have been keeping the dev busy.
kllkko commentedon Feb 18, 2020
Thanks a lot,I have solved it,just modify one line code in setupCameraOutput() in CameraPreview.kt , then it will be working
mActivity.runOnUiThread {
//mTextureView.setAspectRatio(mPreviewSize!!.height, mPreviewSize!!.width)
mTextureView.setAspectRatio(mPreviewSize!!.width, mPreviewSize!!.height)
}
tibbi commentedon Feb 18, 2020
Umm, no. Thats not how it works.
tibbi commentedon Oct 15, 2022
camera has been rewritten from scratch in 5.4.0, so Im closing this