-2
我不知道在标记的onCreateView()方法的容器参数来自哪里,有一个ViewGroup的活动有这个片段或别的东西?我不知道那是因为我不知道是什么的ViewGroup片段是XML吸引到这个代码.thanks您的时间Android的片段容器参数在onCreateView
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_list,container,true);
}