<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >


  <!--相机预览画面-->
  <SurfaceView
      android:id="@+id/previewView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      />
  <io.comi.rn.barcode.scanner.impl.ViewfinderView
      android:id="@+id/viewfinderView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      />


  <RelativeLayout
      android:id="@+id/headerView"
      android:layout_width="match_parent"
      android:layout_height="@dimen/scanner_top_bar_height"
      android:background="@android:color/transparent"
      android:orientation="horizontal"
      android:paddingRight="@dimen/scanner_top_bar_padding_horizontal"

      >
    <ImageView
        android:id="@+id/backView"
        android:layout_width="@dimen/scanner_top_bar_height"
        android:layout_height="match_parent"
        android:layout_centerVertical="true"
        android:layout_marginLeft="2dp"
        android:background="?android:selectableItemBackground"
        android:padding="15dp"
        android:src="@drawable/back"
        />
    <TextView
        android:id="@+id/titleView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginLeft="2dp"
        android:layout_toRightOf="@id/backView"
        android:textColor="@android:color/white"
        android:textSize="@dimen/title_text_size"

        />

    <ImageView
        android:id="@+id/flashSwitcher"
        android:layout_width="@dimen/scanner_top_bar_height"
        android:layout_height="match_parent"
        android:layout_alignParentRight="true"
        android:layout_marginLeft="2dp"
        android:background="?android:selectableItemBackground"
        android:padding="15dp"
        android:src="@drawable/flash_off"
        />
    <ImageView
        android:id="@+id/imagePicker"
        android:layout_width="@dimen/scanner_top_bar_height"
        android:layout_height="match_parent"
        android:layout_marginLeft="2dp"
        android:layout_toLeftOf="@id/flashSwitcher"
        android:background="?android:selectableItemBackground"
        android:padding="15dp"
        android:src="@drawable/img_picker"
        />
  </RelativeLayout>

</RelativeLayout>
