diff options
Diffstat (limited to 'quickReader/res/layout/activity_scanner.xml')
-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> |