Android应用开发—知识点汇总
获取Fragment的context: getActivity().getApplicationContext()或者getActivity() You can use getActivity(), which returns the activity associated with a fragment. The activity is a context (sinc...