I would like to ask a question related to the camera live view.

When we tap somewhere on the camera preview, a focus appears. How should I get the X & Y coordinates or pixel of that focus?

Thanks in advance.

有帮助吗?

解决方案

This method gives list of all focus areas and try to get Rect of each focus area by which you could get (x,y) of the rectangle.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top