sFade.addTarget(R.id.removingButton).addTarget(R.id.invisibleButton).
addTarget(R.id.goneButton);
super.onCreate(savedInstanceState);
setContentView(R.layout.fading_test);
View container = (View) findViewById(R.id.container);
mSceneRoot = (ViewGroup) container.getParent();
mRemovingButton = (Button) findViewById(R.id.removingButton);
mInvisibleButton = (Button) findViewById(R.id.invisibleButton);
mGoneButton = (Button) findViewById(R.id.goneButton);
mGoneButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mGoneButton.setAlpha(mGoneButton.getAlpha() < 1 ? 1 : .6f);
}
});
mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test, this);
mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test_scene_2, this);
mCurrentScene = mScene1;