寫一個如下的BaseFragment類:所有的 Fragment 都繼承這個 BaseFragment ,直接通過 getContext() 方法即可得到 Context 物件,當然例項化 Dialog 等 ...
確定! 回上一頁