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.mortar.view; //from ww w . j a v a2 s . co m import android.content.Context; import android.util.AttributeSet; import android.widget.RelativeLayout; import com.davidstemmer.screenplay.sample.mortar.scene.PagedScene1; import javax.inject.Inject; import mortar.Mortar; /** * Created by weefbellington on 10/19/14. */ public class PagedView1 extends RelativeLayout { @Inject PagedScene1.Presenter presenter; public PagedView1(Context context, AttributeSet attrs) { super(context, attrs); Mortar.inject(context, this); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); presenter.takeView(this); } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); presenter.dropView(this); } }