UNPKG

react-native-blinkid

Version:

React Native adapter for MicroBlink's BlinkID SDK

165 lines (138 loc) 6.05 kB
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" android:layout_width="match_parent" android:background="@color/transparent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:weightSum="1" android:background="@color/transparent"> <View android:id="@+id/top_space_holder" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.34" android:background="@color/overlay_background_blink_ocr"/> <LinearLayout android:id="@+id/horizontal_container" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.13" android:orientation="horizontal" android:background="@color/transparent"> <View android:id="@+id/left_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.1" android:background="@color/overlay_background_blink_ocr" tools:ignore="NestedWeights"/> <View android:id="@+id/roi_window" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.8" android:background="@color/transparent"/> <View android:id="@+id/right_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.1" android:background="@color/overlay_background_blink_ocr"/> </LinearLayout> <View android:id="@+id/bottom_space_holder" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.53" android:background="@color/overlay_background_blink_ocr"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:weightSum="1" android:background="@color/transparent"> <LinearLayout android:id="@+id/viewfinder_top_space_holder" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.32" android:orientation="horizontal" android:background="@color/transparent"> <View android:id="@+id/scan_message_left_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0" android:background="@color/transparent" tools:ignore="NestedWeights"/> <RelativeLayout android:id="@+id/scan_message_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@color/transparent"> <!--suppress SelectableText --> <TextView android:id="@+id/txtMessage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="5dp" android:paddingLeft="5dp" android:layout_marginTop="3dp" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:gravity="center" android:textSize="15sp" android:textColor="@color/text_white_blink_ocr" android:background="@color/transparent" tools:text="Position scan element in this frame"/> </RelativeLayout> <View android:id="@+id/scan_message_right_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0" android:background="@color/transparent"/> </LinearLayout> <LinearLayout android:id="@+id/viewfinder_horizontal_container" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.17" android:orientation="horizontal" android:background="@color/transparent"> <View android:id="@+id/viewfinder_left_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.08" android:background="@color/transparent" tools:ignore="NestedWeights"/> <include android:id="@+id/viewfinder" layout="@layout/viewfinder_blink_ocr" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.84"/> <View android:id="@+id/viewfinder_right_space_holder" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.08" android:background="@color/transparent"/> </LinearLayout> <View android:id="@+id/viewfinder_bottom_space_holder" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.51" android:background="@color/transparent"> </View> </LinearLayout> </FrameLayout>