context
2016-05-14 16:57
281 查看
context 是一个访问资源的接口,用来访问全局信息
mainactivity继承context
eg:tv=new textview(this);
tv.settext("123");
Imageview iv=new Imageview(this);
iv.setImageResource(R.imap..a);
setcontentview(iv);
mainactivity继承context
eg:tv=new textview(this);
tv.settext("123");
Imageview iv=new Imageview(this);
iv.setImageResource(R.imap..a);
setcontentview(iv);
相关文章推荐
- python实现SMTP邮件发送功能
- STL next_permutation分析
- Java多线程和并发基础面试问答
- 正岭鸡排
- 用键盘模拟文件输入
- Linux内核开发
- Ubuntu 16.04 LTS 默认壁纸公布,多图预警
- Runnable、Callable和Future
- 关于#define
- 贪心问题,最多电视节目
- Runtime 运行时:Method Swizzling
- Problem G: Find The Difference
- 安卓知识结构及简单自学流程
- 【JAVA基础系列】IEEE754二进位浮点算数标准-JAVA转换器实现
- [Android新手区] SQLite 操作详解--SQL语法
- NYOJ 860 又见01背包
- ext2文件系统下rm-rf * 误删数据恢复
- C:循环
- linux基础之FACL
- 大数乘法