在fragment中获取他附着的activity中的变量
2016-05-14 20:25
316 查看
final String data=(关联的activity类)getActivity().getData();
getData();自定义的方法
getData();自定义的方法
相关文章推荐
- 1092. To Buy or Not to Buy (20)【水题】——PAT (Advanced Level) Practise
- Windows网络编程学习笔记(4) 编写一个TCP客户端
- 警察与厨师
- 1091. Acute Stroke (30)【搜索】——PAT (Advanced Level) Practise
- Nginx 安装升级脚本
- volatile实现可见性但不保证原子性
- 使用hexo搭建博客并上传GitHub
- Codeforces Round #349 (Div. 1) C E (计数. SAM+线段树)
- volatile实现可见性但不保证原子性
- eclipse+Axis2配置开发SOAP服务
- 第7周 C语言程序设计(新2版) 例题 3个函数例题
- PHP中的可变参数函数和可选参数函数
- 1090. Highest Price in Supply Chain (25)【树】——PAT (Advanced Level) Practise
- 分布式环境Session处理方法
- java hdu2011多项式求和
- php &$
- int与Integer的区别
- python基础之文件操作
- 微信JS SDK PHP Demo
- MySQL的source命令不加分号和delimiter的使用