两种创建view的方式,都是传三个参数,切记!
方式一:
View view = inflater.inflate(R.layout.fragment_find, container,false);
方式二:
View view = View.inflate(getContext(), R.layout.fragment_home, null);
方式一:
View view = inflater.inflate(R.layout.fragment_find, container,false);
方式二:
View view = View.inflate(getContext(), R.layout.fragment_home, null);