List of usage examples for android.transition Scene getSceneRoot
public ViewGroup getSceneRoot()
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); }