FileDocCategorySizeDatePackage
ClippingText.javaAPI DocAndroid 5.1 API2414Thu Mar 12 22:22:44 GMT 2015com.android.transitiontests

ClippingText

public class ClippingText extends android.app.Activity

Fields Summary
android.widget.Button
mRemovingButton
android.widget.Button
mInvisibleButton
android.widget.Button
mGoneButton
android.transition.Scene
mScene1
android.transition.Scene
mScene2
android.view.ViewGroup
mSceneRoot
android.transition.Fade
fader
android.transition.TransitionSet
mChanger
android.transition.Scene
mCurrentScene
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)

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

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

        mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.clipping_text_1, this);
        mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.clipping_text_2, this);

        mChanger = new TransitionSet().setOrdering(TransitionSet.ORDERING_TOGETHER);
        ChangeBounds changeBounds = new ChangeBounds();
        changeBounds.setResizeClip(true);
        mChanger.addTransition(changeBounds).addTransition(new ChangeText());

        mCurrentScene = mScene1;
    
public voidsendMessage(android.view.View view)

        if (mCurrentScene == mScene1) {
            TransitionManager.go(mScene2, mChanger);
            mCurrentScene = mScene2;
        } else {
            TransitionManager.go(mScene1, mChanger);
            mCurrentScene = mScene1;
        }