diff options
author | Joey Rizzoli <joey@lineageos.org> | 2017-12-15 17:13:21 +0100 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2018-11-20 12:32:17 +0000 |
commit | fe30f91881b9b7d76a9c404bafcbe19f240e0a61 (patch) | |
tree | 941fc58fd38a5ec42373b708ff98cc9269823913 /quickReader/res/layout | |
parent | bec37cd5493c672007ef88f03d77e02d2a708176 (diff) | |
download | android_packages_apps_Snap-fe30f91881b9b7d76a9c404bafcbe19f240e0a61.tar.gz android_packages_apps_Snap-fe30f91881b9b7d76a9c404bafcbe19f240e0a61.tar.bz2 android_packages_apps_Snap-fe30f91881b9b7d76a9c404bafcbe19f240e0a61.zip |
QuickReader: initial commit
libs from me.dm7.barcodescanner:zxing:1.9.0 maven cache
Change-Id: Ib97b7e54d8e28cd6f637e452eb41045052cae3dc
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
Diffstat (limited to 'quickReader/res/layout')
-rw-r--r-- | quickReader/res/layout/activity_scanner.xml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/quickReader/res/layout/activity_scanner.xml b/quickReader/res/layout/activity_scanner.xml new file mode 100644 index 000000000..6b72ec19f --- /dev/null +++ b/quickReader/res/layout/activity_scanner.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2017 The LineageOS Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <me.dm7.barcodescanner.zxing.ZXingScannerView + android:id="@+id/scanner_view" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +<!-- Enable when bumping library version to 1.9.8 and api 25 + app:borderColor="@color/viewfinder_border" + app:borderWidth="4dp" + app:cornerRadius="4dp" + app:laserColor="@color/viewfinder_laser" + app:maskColor="@color/viewfinder_bg" + app:roundedCorner="true" + app:squaredFinder="true" +--> + + <ImageView + android:id="@+id/action_close" + style="@style/AppTheme.ActionIcon" + android:layout_gravity="start|top" + android:src="@drawable/ic_close" /> + + <ImageView + android:id="@+id/action_flash" + style="@style/AppTheme.ActionIcon" + android:layout_gravity="end|top" + android:src="@drawable/ic_flash_off" /> + + <FrameLayout + android:id="@+id/identify_layout" + android:layout_width="64dp" + android:layout_height="64dp" + android:layout_gravity="center_horizontal|bottom" + android:layout_marginBottom="72dp" + android:layout_marginEnd="16dp" + android:layout_marginStart="16dp" + android:background="@drawable/bg_circle" + android:scaleX="0" + android:scaleY="0" + android:transformPivotX="32dp" + android:transformPivotY="32dp"> + + <ImageView + android:id="@+id/identify_icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_gravity="center" /> + </FrameLayout> +</FrameLayout> |