c2c1b3098c55e5acc89cc5f5f9fa913c031b0516.svn-base 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.vaccination.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:id="@+id/zxingview"
  16. style="@style/MatchMatch"
  17. android:layout_below="@id/tb_sao_title"
  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. <ImageView
  50. android:id="@+id/img_flashlight"
  51. android:layout_width="35dp"
  52. android:layout_height="45dp"
  53. android:layout_alignParentBottom="true"
  54. android:layout_centerHorizontal="true"
  55. android:layout_marginBottom="47dp"
  56. android:src="@mipmap/flashlight_" />
  57. <RelativeLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_alignParentBottom="true"
  61. android:layout_marginLeft="65dp"
  62. android:layout_marginRight="65dp"
  63. android:layout_marginBottom="57dp">
  64. <TextView
  65. android:id="@+id/tv_addbyhand"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_alignParentLeft="true"
  69. android:text="手动输入"
  70. android:textColor="@color/white"
  71. android:textSize="15.36sp" />
  72. <TextView
  73. android:id="@+id/tv_skip"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_alignParentRight="true"
  77. android:text="跳过此页"
  78. android:textColor="@color/white"
  79. android:textSize="15.36sp" />
  80. </RelativeLayout>
  81. </RelativeLayout>