2014年9月15日

LayoutInflater的作用

摘要: LayoutInflater的作用是导入界面,说白了就是查找layout中的.xml界面并导入。如下:public class MainActitivity extends Acticity{ TextView textView; public void onCreate(Bundle save... 阅读全文

posted @ 2014-09-15 21:05 Chaos.WX 阅读(250) 评论(0) 推荐(0)

Intent的两种用法

摘要: Intent主要负责组件之间的跳转,有两种用法:1.显式用法:Intent intent =new Intent(this,TargetActivity.class);startActivity(intent);其中,this指的是当前的.java文件,TargetActivity.class即是要... 阅读全文

posted @ 2014-09-15 19:59 Chaos.WX 阅读(496) 评论(0) 推荐(0)

导航