会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孤帆远航666
博客园
首页
新随笔
联系
订阅
管理
2016年3月19日
android开发中fragment获取context
摘要: 在用到fragment时无法使用.this来指定当前context内容,android开发中fragment获取context,可以使用getActivity().getApplicationContext(),来获取context内容;
阅读全文
posted @ 2016-03-19 09:36 孤帆远航666
阅读(2404)
评论(1)
推荐(0)
公告