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 a2s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.LinearLayout; import com.davidstemmer.screenplay.sample.mortar.scene.DialogScene; import javax.inject.Inject; import mortar.Mortar; /** * Created by weefbellington on 10/2/14. */ public class DialogSceneView extends LinearLayout { @Inject DialogScene.Presenter presenter; public DialogSceneView(Context context, AttributeSet attrs) { super(context, attrs); if (isInEditMode()) return; Mortar.inject(context, this); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); presenter.takeView(this); } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); presenter.dropView(this); } }