您的位置:首页 > 其它

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: