capture.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent" >
  5. <SurfaceView
  6. android:id="@+id/preview_view"
  7. android:layout_width="fill_parent"
  8. android:layout_height="fill_parent" />
  9. <com.google.zxing.client.android.decode.ViewfinderView
  10. android:id="@+id/viewfinder_view"
  11. android:layout_width="fill_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_centerInParent="true" />
  14. <!--
  15. <Button
  16. android:id="@+id/button_openClick"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_gravity="top|right"
  20. android:text="@string/openorclose_light" />
  21. -->
  22. <LinearLayout
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_alignParentRight="true"
  26. android:layout_marginRight="20dip"
  27. android:layout_marginTop="20dip"
  28. android:orientation="horizontal" >
  29. <ImageView
  30. android:id="@+id/button_openorcloseClick"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:src="@drawable/mzw_camera_open" />
  34. </LinearLayout>
  35. <TextView
  36. android:id="@+id/barcode_notice"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_alignParentBottom="true"
  40. android:layout_marginBottom="80dip"
  41. android:layout_marginLeft="60dip"
  42. android:layout_marginRight="60dip"
  43. android:text="@string/qrcode_notice"
  44. android:textColor="#ffffff"
  45. android:textSize="14.0sp" />
  46. </RelativeLayout>