Skip to content

Landscape mode not fuctioning properly #228

Closed

Description

@puppykickr

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

  1. kllkko commented on Feb 12, 2020

    @kllkko

    Hi bro,I found the same question,have you solve this problem? could you give me some suggestions ,thanks

  2. puppykickr commented on Feb 13, 2020

    @puppykickr
    Author

    @kllkko
    Not yet.
    There are many apps in the Simple Mobile Tools collection, and some have been keeping the dev busy.

  3. kllkko commented on Feb 18, 2020

    @kllkko

    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)
    }

  4. tibbi commented on Feb 18, 2020

    @tibbi
    Contributor

    Umm, no. Thats not how it works.

  5. tibbi commented on Oct 15, 2022

    @tibbi
    Contributor

    camera has been rewritten from scratch in 5.4.0, so Im closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions