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.sample.simple.view; //from w w w .j av a 2 s .c om import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.RelativeLayout; import com.davidstemmer.screenplay.sample.simple.SampleApplication; import com.davidstemmer.screenplay.sample.simple.scene.PagedScene3; import com.example.weefbellington.screenplay.sample.simple.R; import flow.Flow; /** * Created by weefbellington on 10/19/14. */ public class PagedView2 extends RelativeLayout { private final Flow flow; public PagedView2(Context context, AttributeSet attrs) { super(context, attrs); flow = SampleApplication.getMainFlow(); } @Override protected void onFinishInflate() { super.onFinishInflate(); findViewById(R.id.next).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { flow.goTo(new PagedScene3()); } }); } }