Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2028363
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: 嵌入式

2012-03-07 22:57:33

  1. Docs
    • http://developer.android.com/guide/topics/fundamentals/fragments.html
  2. Symmary
    You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities (Define its own layout for each fragment, and move logic operation to gragment from activity, then you can define different activities for tablet or handset to reuse the same segments).
    You can think of a fragment as a modular section of an activity, which has its own lifecycle (the fragment's lifecycle is directly affected by the host activity's lifecycle), receives its own input events, and which you can add or remove while the activity is running. You add/replace/remove fragement in transaction, when you perform such a fragment transaction, you can also add it to a back stack that's managed by the activity (with API addToBackStack)—each back stack entry in the activity is a record of the fragment transaction that occurred. The back stack allows the user to reverse a fragment transaction (navigate backwards), by pressing the BACK button.

阅读(1254) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~