attrs.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <!-- 自定义属性-->
  4. <declare-styleable name="ZxingScanView">
  5. <attr name="zsvAmbientLight" format="enum">
  6. <enum name="auto" value="0" />
  7. <enum name="open" value="1" />
  8. <enum name="close" value="2" />
  9. </attr>
  10. <attr name="zsvFeedback" format="enum">
  11. <enum name="auto" value="0" />
  12. <enum name="audio_only" value="1" />
  13. <enum name="vibrator_only" value="2" />
  14. <enum name="audio_vibrator" value="3" />
  15. </attr>
  16. <attr name="zsvAudioAssetsFileName" format="string" />
  17. <attr name="zsvAudioRaw" format="reference" />
  18. <attr name="zsvVibrateMilliseconds" format="integer" />
  19. <attr name="zsvScanWidth" format="dimension">
  20. <enum name="match_parent" value="-1" />
  21. </attr>
  22. <attr name="zsvScanHeight" format="dimension">
  23. <enum name="match_parent" value="-1" />
  24. </attr>
  25. <attr name="zsvCameraId" format="integer" />
  26. <attr name="zsvBarcode">
  27. <flag name="Product_1D" value="1" />
  28. <flag name="Industrial_1D" value="2" />
  29. <flag name="QR" value="4" />
  30. <flag name="Data_Matrix" value="8" />
  31. <flag name="Aztec" value="16" />
  32. <flag name="PDF417" value="32" />
  33. </attr>
  34. <attr name="zsvCharacterSet" format="string" />
  35. </declare-styleable>
  36. <declare-styleable name="ZxingForegroundView">
  37. <attr name="zfvOpenDrawable" format="reference" />
  38. <attr name="zfvErrorDrawable" format="reference" />
  39. <attr name="zfvZxingScanView" format="reference" />
  40. <attr name="zfvMode" format="enum">
  41. <enum name="open" value="0" />
  42. <enum name="error" value="1" />
  43. </attr>
  44. <attr name="zfvCoverColor" format="color" />
  45. <attr name="zfvScanRectDrawable" format="reference" />
  46. <attr name="zfvScanFlagDrawable" format="reference" />
  47. <attr name="zfvFlagAnimatorDuration" format="integer" />
  48. <attr name="zfvFlagAnimatorRepeatMode" format="enum">
  49. <enum name="Restart" value="1" />
  50. <enum name="Reverse" value="2" />
  51. </attr>
  52. <attr name="zfvShowResultPoints" format="boolean" />
  53. <attr name="zfvResultPointsAnimatorDuration" format="integer" />
  54. <attr name="zfvMaxResultPointsNumber" format="integer" />
  55. <attr name="zfvResultPointsColor" format="color" />
  56. <attr name="zfvResultPointsSize" format="dimension" />
  57. </declare-styleable>
  58. </resources>