Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Fragment を使ってみよう

18,878 views

Published on

Published in: Technology, News & Politics
  • Be the first to comment

Fragment を使ってみよう

  1. 1. FragmentGDD Bootcamp 2011 1
  2. 2. ✤ - (uPhyca)✤ Blog : Y.A.M (y-anz-m.blogspot.com)✤ : Android Layout Cookbook✤ Twitter : @yanzm✤ Android✤ GTUG Girls 2
  3. 3. Fragment 3
  4. 4. Fragment 4
  5. 5. Fragment 5
  6. 6. 6
  7. 7. → layout-xlarge 7
  8. 8. 8
  9. 9. ...<LinearLayout ...> <include layout=”@layout/main1”/> <include layout=”@layout/main2”/></LinearLayout> Activity 9
  10. 10. Activity+ 10
  11. 11. Fragment ... Fragment1 Fragment2<LinearLayout ...> <fragment android:name=”...Fragment1”/> + + <fragment android:name=”...Fragment2”/></LinearLayout> Fragment1 Fragment2Fragment Activity + + 11
  12. 12. 2 12
  13. 13. Fragment 13
  14. 14. 14
  15. 15. ... View XML URL Fragment GET-1 UI- Activity 15
  16. 16. ... ioschedDashboardFragmentWhatsOnFragment 16
  17. 17. ...Activity onPause(), onResume() - IntentFilter regist / unregist - ContentObserver regist /unregist - 17
  18. 18. ...- UI → Fragment Fragment Fragment1 Fragment1 Fragment2 18
  19. 19. ...Activity- setContentView() View → Fragment Fragment → 19
  20. 20. ...Android 3.2 ActivityGroup, LocalActivityManagerdeprecated → TabHost Activity- Fragment- ActionBar.Tab 20
  21. 21. ...ListView + 1 View + Adapter ListFragment View 1 21
  22. 22. Fragment 22
  23. 23. Fragment UI 23
  24. 24. Activity - View Activity - Fragment - ViewFragment = + + View Activity View ... 24
  25. 25. View 25
  26. 26. View- View 1 View- View- View- View- View 26
  27. 27. ViewActivity Fragment 27
  28. 28. Fragment✤ View +✤ View✤ Activity✤ 28
  29. 29. Fragment✤ 1 View XML <fragment>✤ View 29
  30. 30. Fragment✤ View XML ... ✤ ✤ 30
  31. 31. Fragment 3.0v4 Support Library 1.6 31
  32. 32. View Activity Fragment 32
  33. 33. ✤ View or View ✤✤ Fragment ✤ View + View View View✤ Activity ✤ Activity Fragment Fragment Window Activity 33
  34. 34. 34

×