Git Product home page Git Product logo

Comments (4)

CJT2325 avatar CJT2325 commented on July 4, 2024

应该可以现在onTouch先判断一下有无获取权限

from cameraview.

CJT2325 avatar CJT2325 commented on July 4, 2024

你的手机是6.0的,第一次打开的时候没有弹出权限获取提示框嘛?

from cameraview.

missu263 avatar missu263 commented on July 4, 2024

我手头上的测试机ViVo Y66 android6.0,第一次打开会自动弹出拍摄的权限提示框,但是录音的提示框要按下按钮之后,开始录制的时候才会弹出这个录音的权限哦。。。
应该是提示框的Dialog弹出,界面控件失去焦点了,所以captureButton无法再去捕获MotionEvent,所以动画默认自动全部执行完毕了。。。
关于您说的在操作之前去检查权限,这个在ViVo Y66 android6.0上,是不生效的哦。
所以想请教您,能否在自定义控件captureButton上去做相关的处理。比如判断有没有弹出框,这样去取消动画了。
以上,非常感谢您的回复 :)

from cameraview.

CJT2325 avatar CJT2325 commented on July 4, 2024

你试试看在 MOTION_CANCEL 这个onTouch 事件打印一下LOG,看看弹出Dialog时候并且点击后会不会执行这个事件,如果执行的话你就可以在这里去停止动画

from cameraview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.