无法在Android Studio上解析方法

时间:2014-05-21 01:16:44

标签: java android android-studio

当我使用onMeasure时:

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    final int width = resolveSize(getSuggestedMinimumWidth(), widthMeasureSpec);
    final int height = resolveSize(getSuggestedMinimumHeight(), heightMeasureSpec);
    setMeasuredDimension(width, height);
    if (mSupportedPreviewSizes != null) {
        Camera.Parameters parameters = camera.getParameters();
        mPreviewSize = getBestPreviewSize(width, height, parameters);
    }
}

Android Studio告诉我" 无法解析方法" getSuggestedMinimumWidth() getSuggestedMinimumHeight() setMeasuredDimension()

当然,我做了所有必要的导入。

有什么想法吗?

0 个答案:

没有答案