Example usage for android.transition Scene getSceneRoot

List of usage examples for android.transition Scene getSceneRoot

Introduction

In this page you can find the example usage for android.transition Scene getSceneRoot.

Prototype

public ViewGroup getSceneRoot() 

Source Link

Document

Gets the root of the scene, which is the root of the view hierarchy affected by changes due to this scene, and which will be animated when this scene is entered.

Usage

From source file:com.example.android.fragmenttransition.DetailFragment.java

@Override
public void onAnimationEnd(Animation animation) {
    // This method is called at the end of the animation for the fragment transaction,
    // which is perfect time to start our Transition.
    Log.i(TAG, "Fragment animation ended. Starting a Transition.");
    final Scene scene = Scene.getSceneForLayout((ViewGroup) getView(), R.layout.fragment_detail_content,
            getActivity());//from ww w.j  av  a2s. c  o  m
    TransitionManager.go(scene);
    // Note that we need to bind views with data after we call TransitionManager.go().
    bind(scene.getSceneRoot());
}

From source file:com.intel.demo.fragmenttransition.DetailFragment.java

@TargetApi(Build.VERSION_CODES.KITKAT)
@Override//w w  w .j a va2  s. c  o  m
public void onAnimationEnd(Animation animation) {
    // This method is called at the end of the animation for the fragment transaction,
    // which is perfect time to start our Transition.
    Log.i(TAG, "Fragment animation ended. Starting a Transition.");
    final Scene scene = Scene.getSceneForLayout((ViewGroup) getView(), R.layout.fragment_detail_content,
            getActivity());
    TransitionManager.go(scene);
    // Note that we need to bind views with data after we call TransitionManager.go().
    bind(scene.getSceneRoot());
}

From source file:tabhostapp.com.tabhostapp.DetailFragment.java

@Override
public void onAnimationEnd(Animation animation) {
    // This method is called at the end of the animation for the fragment transaction,
    // which is perfect time to start our Transition.
    final Scene scene = Scene.getSceneForLayout((ViewGroup) getView(), R.layout.fragment_detail_content,
            getActivity());/*from   w w w  .j a  va  2  s. c o  m*/
    TransitionManager.go(scene);
    // Note that we need to bind views with data after we call TransitionManager.go().
    bind(scene.getSceneRoot());
}

From source file:com.dev.foundingfourfathers.alchemy.BrowseCocktails.DetailFragment.java

@Override
public void onAnimationEnd(Animation animation) {
    // This method is called at the end of the animation for the fragment transaction,
    // which is perfect time to start our Transition.
    //Log.i(TAG, "Fragment animation ended. Starting a Transition.");

    final Scene scene = Scene.getSceneForLayout((ViewGroup) getView(), R.layout.fragment_detail_content,
            getActivity());//from  ww  w.  j ava  2s  .co  m
    TransitionManager.go(scene);
    // Note that we need to bind views with data after we call TransitionManager.go().
    bind(scene.getSceneRoot());
    setText(DRINK);
}