ipu的trunk版的android工程和服务端工程。

activity_scan_multiple.xml 2.6KB

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.ipu.scan.ScanActivity" > <SurfaceView android:id="@+id/preview_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <RelativeLayout android:id="@+id/rl_viewfinder" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageButton android:id="@+id/btn_cancel_scan" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:src="@drawable/scan_cancel_normal" /> <Button android:id="@+id/btn_call_result" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="返回结果集" android:textSize="23sp"/> <ImageButton android:id="@+id/btn_flashlight" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:src="@drawable/scan_flashlight_off" /> </RelativeLayout> <com.ai.ipu.scan.view.ViewfinderView android:id="@+id/viewfinder_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <ListView android:id="@+id/list_scan_result" android:layout_width="match_parent" android:background="@android:color/white" android:layout_height="match_parent"> </ListView> </RelativeLayout> </LinearLayout> </RelativeLayout>