435b52ef1d5edc1f0111a19ae7909ea5fe17774e.svn-base 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".ui.first.QrCodeActivity">
  8. <com.hjq.bar.TitleBar
  9. android:id="@+id/tb_sao_title"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. app:rightTitle="相册"
  13. app:title="@string/inoculation_title" />
  14. <cn.bingoogolapple.qrcode.zxing.ZXingView
  15. android:layout_below="@id/tb_sao_title"
  16. android:id="@+id/zxingview"
  17. style="@style/MatchMatch"
  18. app:qrcv_animTime="1000"
  19. app:qrcv_barCodeTipText="将条码放入框内,即可自动扫描"
  20. app:qrcv_barcodeRectHeight="120dp"
  21. app:qrcv_borderColor="@android:color/white"
  22. app:qrcv_borderSize="1dp"
  23. app:qrcv_cornerColor="@color/colorPrimaryDark"
  24. app:qrcv_cornerDisplayType="center"
  25. app:qrcv_cornerLength="20dp"
  26. app:qrcv_cornerSize="3dp"
  27. app:qrcv_customScanLineDrawable="@drawable/scan_icon_scanline"
  28. app:qrcv_isAutoZoom="true"
  29. app:qrcv_isBarcode="false"
  30. app:qrcv_isOnlyDecodeScanBoxArea="false"
  31. app:qrcv_isScanLineReverse="true"
  32. app:qrcv_isShowDefaultGridScanLineDrawable="false"
  33. app:qrcv_isShowDefaultScanLineDrawable="true"
  34. app:qrcv_isShowLocationPoint="true"
  35. app:qrcv_isShowTipBackground="true"
  36. app:qrcv_isShowTipTextAsSingleLine="false"
  37. app:qrcv_isTipTextBelowRect="true"
  38. app:qrcv_maskColor="#33FFFFFF"
  39. app:qrcv_qrCodeTipText="将二维码/条码放入框内,即可自动扫描"
  40. app:qrcv_rectWidth="244dp"
  41. app:qrcv_scanLineColor="@color/colorPrimaryDark"
  42. app:qrcv_scanLineMargin="0dp"
  43. app:qrcv_scanLineSize="0.5dp"
  44. app:qrcv_tipTextColor="@android:color/white"
  45. app:qrcv_tipTextSize="12sp"
  46. app:qrcv_toolbarHeight="60dp"
  47. app:qrcv_topOffset="65dp"
  48. app:qrcv_verticalBias="-1" />
  49. <RelativeLayout
  50. android:layout_marginLeft="65dp"
  51. android:layout_marginRight="65dp"
  52. android:layout_marginBottom="57dp"
  53. android:layout_alignParentBottom="true"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content">
  56. <TextView
  57. android:id="@+id/tv_addbyhand"
  58. android:text="手动输入"
  59. android:textColor="@color/white"
  60. android:textSize="15.36sp"
  61. android:layout_alignParentLeft="true"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content" />
  64. <TextView
  65. android:id="@+id/tv_skip"
  66. android:text="跳过此页"
  67. android:textColor="@color/white"
  68. android:textSize="15.36sp"
  69. android:layout_alignParentRight="true"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content" />
  72. </RelativeLayout>
  73. </RelativeLayout>