Changes

Jump to: navigation, search
Creating the SceneTransitions Project
== Creating the SceneTransitions Project ==
Launch Eclipse and create an Android Application Project named SceneTransitions with the appropriate package name and latest SDK selections. As with previous examples, request the creation of a blank activity and the use of the default launcher icons. On the New Blank Activity screen of the New Android Application wizard, set the Activity Name to SceneTransitionsActivity and the Layout Name and Fragment names to activity_scene_transitionsand fragment_scene_transitions== Modifying the Project Structure == By default, Eclipse has created a template for our project in which the content view of the activity is stored within a fragment layout file. This presents an unnecessary level of abstraction for this particular application project, so the first step is to remove this from the project. Begin by locating the fragment_scene_transitions.xml file on res -> layout and deleting it. Once deleted, edit the SceneTransitions.java file and remove the PlaceholderFragment class declaration from the file. Having removed the PlaceholderFragment class, modify the onCreate() method to remove the fragment loading code: <pre>@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_scene_transitions); }</pre>
== Identifying and Preparing the Root Container ==

Navigation menu