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; // w w w . j a va 2s.co m import android.app.Activity; import android.view.ViewGroup; import com.davidstemmer.screenplay.flow.Screenplay; /** * @version 1.0.0 * @author David Stemmer * @since 1.0.0 */ public class SimpleActivityDirector implements Screenplay.Director { private Activity activity; private ViewGroup container; public void bind(Activity activity, ViewGroup container) { this.activity = activity; this.container = container; } public void unbind() { this.activity = null; this.container = null; } @Override public Activity getActivity() { return activity; } @Override public ViewGroup getContainer() { return container; } }