realize “back arrow” with help basefragment
问题 I have BaseFragment public abstract class BaseFragment extends Fragment { private static String TAG = "BaseFragment"; private BaseFragmentActions baseFragmentActions; @Override public void onAttach(Context context) { super.onAttach(context); Log.i(TAG, "onAttach = "); try { baseFragmentActions = (BaseFragmentActions)(StartPageActivity)getActivity(); } catch (ClassCastException e) { throw new ClassCastException(((StartPageActivity)getActivity()).toString() + " must implement interface