@Override public void onResendClick(final EMMessage message) { new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) { if (!confirmed) { return; } resendMessage(message); } }, true).show(); }
public EaseAlertDialog(Context context, String title, String msg, Bundle bundle, AlertDialogUser user, boolean showCancel) { super(context); this.title = title; this.msg = msg; this.user = user; this.bundle = bundle; this.showCancel = showCancel; this.setCanceledOnTouchOutside(true); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.ease_alert_dialog); Button cancel = (Button)findViewById(R.id.btn_cancel); Button ok = (Button)findViewById(R.id.btn_ok); TextView titleView = (TextView) findViewById(R.id.title); setTitle(title); ((TextView)findViewById(R.id.alert_message)).setText(msg);
public void onOk(View view){ this.dismiss(); if (this.user != null) { this.user.onResult(true, this.bundle); } }
new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.ease_alert_dialog); Button cancel = (Button)findViewById(R.id.btn_cancel); Button ok = (Button)findViewById(R.id.btn_ok); TextView titleView = (TextView) findViewById(R.id.title); setTitle(title); ((TextView)findViewById(R.id.alert_message)).setText(msg);
public void onOk(View view){ this.dismiss(); if (this.user != null) { this.user.onResult(true, this.bundle); } }
new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.ease_alert_dialog); Button cancel = (Button)findViewById(R.id.btn_cancel); Button ok = (Button)findViewById(R.id.btn_ok); TextView titleView = (TextView) findViewById(R.id.title); setTitle(title); ((TextView)findViewById(R.id.alert_message)).setText(msg);
@Override public void onResendClick(final EMMessage message) { new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) { if (!confirmed) { return; } resendMessage(message); } }, true).show(); }
public EaseAlertDialog(Context context, String title, String msg) { super(context); this.title = title; this.msg = msg; this.setCanceledOnTouchOutside(true); }
public void onCancel(View view) { this.dismiss(); if (this.user != null) { this.user.onResult(false, this.bundle); } } }
new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.ease_alert_dialog); Button cancel = (Button)findViewById(R.id.btn_cancel); Button ok = (Button)findViewById(R.id.btn_ok); TextView titleView = (TextView) findViewById(R.id.title); setTitle(title); ((TextView)findViewById(R.id.alert_message)).setText(msg);
@Override public void onResendClick(final EMMessage message) { new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() { @Override public void onResult(boolean confirmed, Bundle bundle) { if (!confirmed) { return; } resendMessage(message); } }, true).show(); }
public EaseAlertDialog(Context context, String title, String msg, Bundle bundle, AlertDialogUser user, boolean showCancel) { super(context); this.title = title; this.msg = msg; this.user = user; this.bundle = bundle; this.showCancel = showCancel; this.setCanceledOnTouchOutside(true); }
public void onCancel(View view) { this.dismiss(); if (this.user != null) { this.user.onResult(false, this.bundle); } } }