在用到fragment时无法使用.this来指定当前context内容,android开发中fragment获取context,可以使用getActivity().getApplicationContext(),来获取context内容;
转载于:https://www.cnblogs.com/zxr63/p/5294364.html
在用到fragment时无法使用.this来指定当前context内容,android开发中fragment获取context,可以使用getActivity().getApplicationContext(),来获取context内容;
转载于:https://www.cnblogs.com/zxr63/p/5294364.html