cordova-plugin-cszbar-jsg/android/res/layout/cszbarscanner.xml

67 lines
2.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/csZbarScannerView"
2015-10-20 23:17:47 +08:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/csZbarScannerBackground" >
2015-01-16 22:44:36 +08:00
<TextView android:id="@+id/csZbarScannerTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:paddingTop="15dp"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:gravity="center"
android:text="@string/csZbarScannerTitle"
android:textColor="@color/csZbarScannerTextColor"
android:background="@color/csZbarScannerTextBackground"
android:fontFamily="sans-serif-light"
2015-10-20 23:17:47 +08:00
android:textSize="15pt" />
2015-01-16 22:44:36 +08:00
<TextView android:id="@+id/csZbarScannerInstructions"
2015-10-20 23:17:47 +08:00
android:layout_gravity="center|bottom"
android:layout_width="296dp"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:gravity="center"
2015-10-20 23:17:47 +08:00
android:textSize="8pt"
android:textColor="@color/csZbarScannerTextColor"
android:fontFamily="sans-serif-light"
android:text="@string/csZbarScannerInstructions" />
2015-01-16 22:44:36 +08:00
<RelativeLayout android:id="@+id/csZbarScannerSightContainer"
2015-10-20 23:17:47 +08:00
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="center_horizontal|bottom">
<View android:id="@+id/csZbarScannerSight"
2015-10-20 23:17:47 +08:00
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_centerInParent="true"
android:gravity="center_vertical"
android:background="#ff0000" />
2015-10-20 23:17:47 +08:00
<ImageButton
android:layout_width="60dp"
android:layout_height="70dp"
android:id="@+id/imageButton"
android:src="@drawable/camera_flash"
android:background="@color/csZbarScannerTextBackground"
android:onClick="toggleFlash"
android:longClickable="true"
android:visibility="visible"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
2015-10-20 23:17:47 +08:00
android:layout_alignParentEnd="true" />
</RelativeLayout>
</FrameLayout>