Android應用開發—知識點彙總

獲取Fragment的context: getActivity().getApplicationContext()或者getActivity() You can use getActivity(), which returns the activity associated with a fragment. The activity is a context (since Activi
相關文章
相關標籤/搜索