============問題描述============app
============解決方案1============this
============解決方案2============google
這個是要硬件支持的,不是全部camera均可以。 先調用getMaxNumFocusAreas()看下是否支持,google的說明: Before using this API or {@link #setFocusAreas(List)}, apps should call {@link #getMaxNumFocusAreas()} to know the maximum number of focus areas first. If the value is 0, focus area is not supported.