FileDocCategorySizeDatePackage
ScenesTestAutoTransition2.javaAPI DocAndroid 5.1 API1790Thu Mar 12 22:22:44 GMT 2015com.android.transitiontests

ScenesTestAutoTransition2

public class ScenesTestAutoTransition2 extends android.app.Activity

Fields Summary
android.view.ViewGroup
mSceneRoot
static android.transition.Scene
mCurrentScene
android.transition.Scene
mResultsScreen
android.transition.Scene
mSearchScreen
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_screen);

        View container = (View) findViewById(R.id.container);
        mSceneRoot = (ViewGroup) container.getParent();

        mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this);
        mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this);
    
public voidsendMessage(android.view.View view)

        if (mCurrentScene == mResultsScreen) {
            TransitionManager.go(mSearchScreen);
            mCurrentScene = mSearchScreen;
        } else {
            TransitionManager.go(mResultsScreen);
            mCurrentScene = mResultsScreen;
        }