您的位置:首页 > 其它

Activity 生命周期

2014-07-31 10:20 141 查看


onStart(),onStop用来保存状态等值

An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so
the Activity class takes care of creating a window for you in which you can place your UI with
setContentView(View)
.

Activity其实不是显示视图用的,它是一个控制单元,负责与用户进行交互,负责创建Window,然后通过setContentView将UI放置到Window窗口中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: