public class Options_ListFragment extends ListFragment { public static Store_Model我想出了答案,并在Options_ListFragment中将代码更改为以下代码:
public View onCreateView(LayoutInflater inflater, ViewGroup
public class MyListFragment extends ListFragment {...}ListFragmentlistFragment = new MyListFragment();这两行代码都不能编译为"Cannot cast from MyListFragment to ListFragment“。