summaryrefslogtreecommitdiff
path: root/sample/src
diff options
context:
space:
mode:
authorRalf Kistner <ralf@journeyapps.com>2016-02-06 17:12:50 +0300
committerRalf Kistner <ralf@journeyapps.com>2016-02-06 17:12:50 +0300
commit7d2c96ffad1f8d294ed63f29d940227ae995be0d (patch)
treef7c2fe9333387703a163ac9825afbb01363ea95e /sample/src
parent062feb8453426f1585c11fbeaa94a8f35b416e35 (diff)
parentdb3962cd3c2ae73e94da9c2e3092597d4ff4e1d5 (diff)
downloadzxing-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.xml3
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>