Open GospelHW opened 7 years ago
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { SubjectPostApi postEntity = new SubjectPostApi(simpleOnNextListener, (RxAppCompatActivity) getActivity()); }
你说的这种方式不行啊? java.lang.ClassCastException: cn.ccccltd.hntsmview.MainActivity cannot be cast to com.trello.rxlifecycle.components.support.RxAppCompatActivity
是我哪里写错了吗?
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { SubjectPostApi postEntity = new SubjectPostApi(simpleOnNextListener, (RxAppCompatActivity) getActivity()); }