问题现象:
<pre name="code" class="java">
package com.has.changeui;
import android.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class Fragment1 extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment1, null);
}
}
return inflater.inflate(R.layout.fragment1, null);
提示 fragment1 cannot be resolved or is not a field 错误