• Home
  • Raw
  • Download

Lines Matching refs:scene

17 values. The transitions framework can run animations between a starting and an ending scene.
18 The starting scene is often determined automatically from the current state of the user
19 interface. For the ending scene, the framework enables you to create a scene from a layout
22 <p>This lesson shows you how to create scenes in your app and how to define scene actions.
36 scene represents the state of the view hierarchy at the time you created the
38 recreate the scene. The framework creates the scene from the entire view hierarchy in the
39 file; you can not create a scene from part of a layout file.</p>
42 the scene root from your layout as a {@link android.view.ViewGroup} instance and then call the
44 scene root and the resource ID of the layout file that contains the view hierarchy for the
45 scene.</p>
50 with the same scene root element. The snippets also demonstrate that you can load multiple
58 <li>A relative layout for the first scene with two text fields.</li>
59 <li>A relative layout for the second scene with the same two text fields in different order.</li>
83 <p>This layout definition contains a text field and a child layout for the scene root. The
84 layout for the first scene is included in the main layout file. This allows the app to display
85 it as part of the initial user interface and also to load it into a scene, since the framework
86 can load only a whole layout file into a scene.</p>
88 <p>The layout for the first scene is defined as follows:</p>
106 <p>The layout for the second scene contains the same two text fields (with the same IDs)
127 <p>After you create definitions for the two relative layouts, you can obtain an scene for
129 To obtain a scene, you need a reference to the scene root and the layout resource ID.</p>
131 <p>The following code snippet shows you how to get a reference to the scene root and create
138 // Create the scene root for the scenes in this app
148 hierarchies. Both scenes use the scene root defined by the
159 <p>To create a scene from a view hierarchy in your code, use the
166 instance from the scene root element and the view hierarchy for the scene in your code:</p>
171 // Obtain the scene root element
175 // the scene root when this scene is entered
178 // Create a scene
186 <p>The framework enables you to define custom scene actions that the system runs when entering
187 or exiting a scene. In many cases, defining custom scene actions is not necessary, since the
194 starting and ending scenes using exit and entry scene actions.</li>
200 <p>To provide custom scene actions, define your actions as {@link java.lang.Runnable} objects
204 scene before running the transition animation and the {@link
205 android.transition.Scene#setEnterAction setEnterAction()} method on the ending scene after
208 <p class="note"><strong>Note:</strong> Do not use scene actions to pass data between views in