http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html
http://developer.android.com/guide/topics/fundamentals/fragments.html
http://android-developers.blogspot.com/2011/03/fragments-for-all.html
-Fragment
There are also a few subclasses that you might want to extend, instead of the base Fragment class:
-DialogFragment
-ListFragment
-PreferenceFragment
You can see a lot of examples here:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/index.html#Fragment
In order to use compatibility package you need to use FragmentActivity instead of Activity and getSupportFragmentManager instead of getFragmentManage
http://stackoverflow.com/questions/5695408/so-what-are-the-exact-advantages-of-fragments-in-android-3-0
(So, fragment is as view with his life circle)
No comments:
Post a Comment