natario1 / CameraView

📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size.
https://natario1.github.io/CameraView
Other
4.92k stars 926 forks source link

CameraView does not support OnClickListeners #411

Open bapihandzap opened 5 years ago

bapihandzap commented 5 years ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior, possibly in the demo app:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Logs

Use CameraLogger.setLogLevel(LEVEL_VERBOSE) to see all logs into LogCat. Use CameraLogger.registerLogger() to export to file or crash reporting service.

APK

Link to a Github repo where the bug is reproducible. On click listener is not working in cameraview. if i wnat ot set any custom listener is not working

natario1 commented 5 years ago

Thank you! This is because we steal events to manage gestures. I don't know if this will be fixed one day.

Meanwhile you can put CameraView inside a FrameLayout and set your click listener to the frame layout.