public BinderData(Activity act, List<ScheduleItem> _items) {
inflater = (LayoutInflater) act.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
items = _items;
}
当我尝试时
listView = (ListView) rootView.findViewById(R.id.list);
BinderData bindingData = new BinderData(this.getActivity(), SomeArray);
在里面onCreateView
它工作正常。OnCreate
但是,可以在方法中绑定一个列表。