super onCreate savedInstanceState ; setContentView R layout main ; this setTitle "Android条码 二维码识别Demo hellogv" ; imgView ImageView this findViewById R id ImageView01 ; centerView View this findViewById R id centerView ; sfvCamera SurfaceView this findViewById R id sfvCamera ; sfhCamera new SFHCarmer sfvCamera getHolder width height previewCallback ; txtScanResult TextView this findViewById R id txtScanResult ; bt Button this findViewById R id bt ; bt setOnClickListener btclick ; 初始化定时器 mTimer new Timer ; mTimerTask new MyTimerTask ; mTimer schedule mTimerTask 0 80 ; } OnClickListener btclick new OnClickListener { @Override public void onClick View arg0 { if dstLeft 0 { 只赋值一次 dstLeft centerView getLeft width getWindowManager getDefaultDisplay getWidth ; dstTop centerView getTop height getWindowManager getDefaultDisplay getHeight ; dstWidth centerView getRight centerView getLeft width getWindowManager getDefaultDisplay getWidth ; dstHeight centerView getBottom centerView getTop height getWindowManager getDefaultDisplay getHeight ; } sfhCamera AutoFocusAndPreviewCallback ;">super onCreate savedInstanceState ; setContentView R layout main ; this setTitle "Android条码 二维码识别Demo hellogv" ; imgView ImageView this findViewById R id ImageView01 ; centerView View this findViewById R id centerView ; sfvCamera SurfaceView this fin [更多]
- 粉丝: 0
- 资源: 2
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助