Back to project page screenplay.
The source code is released under:
MIT License
If you think the Android project screenplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.davidstemmer.screenplay.scene.rigger; /*from w w w. java 2 s. c o m*/ import android.view.View; import android.view.ViewGroup; import com.davidstemmer.screenplay.scene.Scene; import javax.inject.Inject; import flow.Flow; /** * Created by weefbellington on 10/13/14. */ public class PageRigger implements Scene.Rigger { @Inject public PageRigger() {} @Override public void layoutIncoming(ViewGroup parent, View nextView, Flow.Direction direction) { parent.addView(nextView); } @Override public boolean layoutOutgoing(ViewGroup parent, View previousView, Flow.Direction direction) { parent.removeView(previousView); return true; } }