Back to project page videoMerge.
The source code is released under:
Apache License
If you think the Android project videoMerge 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.dragonplayer.merge.utils; /* w w w. j ava 2 s .co m*/ import com.dragonplayer.merge.R; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class DlgWindow5 extends Dialog { Context context; String mBtnText1; String mBtnText2; android.view.View.OnClickListener mListener1; android.view.View.OnClickListener mListener2; public DlgWindow5(Context context, String btnText1, String btnText2, android.view.View.OnClickListener listener1, android.view.View.OnClickListener listener2) { super(context); // TODO Auto-generated constructor stub this.context = context; mBtnText1 = btnText1; mBtnText2 = btnText2; mListener1 = listener1; mListener2 = listener2; } public DlgWindow5(Context context, int theme, String btnText1, String btnText2, android.view.View.OnClickListener listener1, android.view.View.OnClickListener listener2){ super(context, theme); this.context = context; mBtnText1 = btnText1; mBtnText2 = btnText2; mListener1 = listener1; mListener2 = listener2; } @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.dialog_window5); Button btnCancel = ((Button)(findViewById(R.id.btn1))); btnCancel.setText(mBtnText1); btnCancel.setOnClickListener(mListener1); Button btnOK = ((Button)(findViewById(R.id.btn2))); btnOK.setText(mBtnText2); btnOK.setOnClickListener(mListener2); } }