CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.37k stars 879 forks source link

Preview distorted v1.0.0-beta3.11 Samsung #515

Open lafalex opened 5 years ago

lafalex commented 5 years ago

Hi,

This is a bug report for beta version 1.0.0

Library version: 1.0.0-beta3.11 Phone: Samsung XCover Screen dimension: 1280x818 Version Android: 8.1.0

Preview is distorted (see screenshot, should be a ball) in version 1.0.0-beta (with Camera2) Try to play with wrap_content and adjustViewBounds, unsucessfull

Works fine in version library 0.13.X (with Camera1)

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

            <com.camerakit.CameraKitView
                android:id="@+id/camera"
                app:camera_facing="back"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

</FrameLayout>

image002