摘要: 在android中context可以作很多操作,但是最主要的功能是加载和访问资源。在android中有两种context,一种是 application context,一种是activity context,通常我们在各种类和方法间传递的是activity context。比如一个activity的onCreate:protected void onCreate(Bundle state) { super.onCreate(state); TextView label = new TextView(this); //传递context给view control label.... 阅读全文
posted @ 2012-08-09 11:46 肆意感受 阅读(220) 评论(0) 推荐(0) 编辑