我对以下段落有疑问。
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GestureOverlayView gestureOverlayView = new GestureOverlayView(this);
View inflate = getLayoutInflater().inflate(R.layout.main, null);
gestureOverlayView.addView(inflate);
gestureOverlayView.addOnGesturePerformedListener((OnGesturePerformedListener) this);
gestureLib = GestureLibraries.fromRawResource(null, R.raw.gestures);
if (!gestureLib.load()) {
finish();
}
setContentView(gestureOverlayView);
}
void setContentView(R.layout.main);
R.layout.main
给了我第二个带有以下错误下划线的点:
Syntax error on token ".", ... expected