Fragments for All
iii
Contents
1 So, What’s a Fragment? 1
2 Fragments: Implemented in Honeycomb (3.0) or Later 1
3 Fragments: Implemented in Donut (1.6) or Later 1
4 Downloading the Compatibility Package 2
5 Using the Compatibility Package 2
6 Fragment Lifecycle 3
7 Creating the Fragment Class 4
8 Creating a Fragment Layout 5
9 Creating a Fragment Layout (example) 5
10 “Statically” Including a Fragment in an Activity Layout 6
11 Dynamically Adding a Fragment to an Activity 7
12 Handling Run-Time Configuration Changes 7
13 Saving Fragment State 8
14 Retaining Fragments Across Activity Re-Creation 8
15 Using Fragments with no Layouts 9
16 Finding Fragments 9
17 Fragment Operations 10
18 Performing Fragment Transactions 10
19 Managing the Fragment Back Stack 11
20 Integrating Fragment Action Bar/Options Menu Items 12
21 Integrating Fragment Action Bar/Options Menu Items (example) 12
评论4
最新资源