diff options
| author | Ralf Kistner <ralf@journeyapps.com> | 2016-02-06 17:12:50 +0300 |
|---|---|---|
| committer | Ralf Kistner <ralf@journeyapps.com> | 2016-02-06 17:12:50 +0300 |
| commit | 7d2c96ffad1f8d294ed63f29d940227ae995be0d (patch) | |
| tree | f7c2fe9333387703a163ac9825afbb01363ea95e /sample/src | |
| parent | 062feb8453426f1585c11fbeaa94a8f35b416e35 (diff) | |
| parent | db3962cd3c2ae73e94da9c2e3092597d4ff4e1d5 (diff) | |
| download | zxing-android-embedded-7d2c96ffad1f8d294ed63f29d940227ae995be0d.tar.xz | |
Merge pull request #135 from journeyapps/refactor-preview-scaling
New preview scaling logic
Diffstat (limited to 'sample/src')
| -rw-r--r-- | sample/src/main/res/layout/capture_small.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/src/main/res/layout/capture_small.xml b/sample/src/main/res/layout/capture_small.xml index 54ca16a0..65263d61 100644 --- a/sample/src/main/res/layout/capture_small.xml +++ b/sample/src/main/res/layout/capture_small.xml @@ -29,6 +29,7 @@ android:layout_marginTop="150dp" android:layout_marginBottom="150dp" android:id="@+id/zxing_barcode_scanner" - app:zxing_use_texture_view="true"/> + app:zxing_use_texture_view="false" + app:zxing_preview_scaling_strategy="centerCrop"/> </FrameLayout> |
