[Android] Chapter 1 activity and fragment-main interface of the example in this chapter,
Category: C #, Android, VS2015;
Created on: 1. Introduction
In this chapter, we will learn how activity and fragment work in order to properly manage the States of different activities and fragment. Ii. Main Interface of this Chapter
1. Run
2. The code in the MainActivity. cs File
ChItems. add (new Chapter () {ChapterName = "Chapter 11th activity and fragment", ChapterItems = new ChItem [] {new ChItem {type = typeof (ch1101Activity1 ), title = "example 11-1 understand the lifecycle of an Activity", Desc = "demonstrate the methods called in sequence during the lifecycle of an Activity"}, new ChItem {type = typeof (ch1102Activity ), title = "example 11-2 status saving and recovery", Desc = "demonstrate how to save and restore the status of temporary data during screen rotation "}, new ChItem {type = typeof (ch1103GridViewSceneTransitionMain), Title = "case 11-3 scenario conversion", Desc = "demonstrate how to use GridView to implement scenario switching "}, new ChItem {type = typeof (ch1104FragmentDemo), Title = "example 11-4 Fragment basic usage", Desc = "demonstrate Fragment basic usage "},}});